Wrong answer for test case 1


plz see where i went wrong

Hey @Vishu_1801
This Question is based on Circular Linked List
why are you using ArrayList ??
try for this input :
100 200 300 400 500 600 700 800 900 1000 900 -1

ArrayList use karne se farak kya padega and I am not getting why i am unable to get this test case ??

@Vishu_1801
debug your code .You can see where your code has failed