Getting TLE on a dfs problem

Revision en1, by skpro19, 2017-09-07 11:27:34

I am getting a TLE on this problem using DFS. This is my  . Can someone suggest some optimizations?

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English skpro19 2017-09-07 12:40:48 23
en2 English skpro19 2017-09-07 11:28:10 12 Tiny change: 'his is my ![ ](http://c' -> 'his is my [submission](http://c'
en1 English skpro19 2017-09-07 11:27:34 232 Initial revision (published)