Codeforces and Polygon may be unavailable from May 23, 4:00 (UTC) to May 23, 8:00 (UTC) due to technical maintenance. ×

Help : DFS Runtime error problem.

Revision en2, by krishna_7, 2018-10-07 14:10:27

So I have been trying a DFS problem. But it is giving me a runtime error on test 9. However, I am not able to understand why I am getting runtime error. It has been two hours now. Someone please help me.

Edit: This is my code.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English krishna_7 2018-10-07 14:10:27 27
en1 English krishna_7 2018-10-07 12:02:03 349 Initial revision (published)