Having some problem on doing dfs on a tree.....

Revision en2, by Racer5x, 2020-03-21 14:40:54

First of all thanks for reading this blog..... I am trying to do dfs on a tree of size 2*(10^5) but there is some kind of error(I am sorry that i can't point out of which kind). It works for small inputs but it's not working for the above mentioned size....

DFS Code

and the test_case at which it is failing is cses tc 5. Any help will be appreciated.....

BTW the solution which i submitted for this(Problem Link) problem is

Spoiler

Thanks... (Sorry for my bad English)

Tags segtree, #trees, cses, #dfs

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English Racer5x 2020-03-21 18:58:44 16 Tiny change: 'English)\n' -> 'English)\n\n\nSOLVED!!!!\n'
en2 English Racer5x 2020-03-21 14:40:54 54
en1 English Racer5x 2020-03-21 14:39:04 4297 Initial revision (published)