Broken Test Case duuuude


#1

There is definitely a cycle in this graph and it says it should return 1!!

A : 5
B : [ 1, 3, 4, 5 ]
C : [ 2, 1, 5, 3 ]


#2

4->5->3->1->2 There is no cycle in this graph. If 6k people have had successful submissions it means the cases are right so instead of directly declaring the tescases are wrong you should first consider finding your own mistakes.


#3

B has source elements and C has destination elements.
for example : (B[0],C[0]) is a source and destination paiir


#4

Yeah the solution may not be CORRECT as :
6
6 1 1 2 3 1 2 4 1 3 4
6 2 3 4 4 5 5 5 6 6 6
The ans of it should be 1 as a student is able to complete courses in sequence
1->2->3->4->5->6.
But Expected output shows 0.


#5

The very first pair (6,6) is creating a cycle. This means that to take course 6 you need to first complete course 6. This is kind of a paradox.