educative.io

Does the algorithm works when there are multiple initial sources

What is the expected output for this input:
AllTaskSchedulingOrders.printOrders(4, new int[][] { new int[] { 0, 1 }, new int[] { 1, 2 }, new int[] { 2, 3 } });

Does the algorithm work as expected?

Hi @obidul
Can you please specify the lesson here?
Thanks