Why am I getting Runtime Error?

Revision en1, by arnav2004, 2021-11-23 15:27:11

I solving this problem Link to problem. I could not solve it hence checked other people's code. I saw this AC Code. AC Solution. I changed it just a little bit and it got runtime error. Runtime Error Code. As you can see the only difference is in the for loop in the 'dfs' function. Can anyone tell me the reason for the code to receive a runtime error.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English arnav2004 2021-11-23 15:27:11 557 Initial revision (published)