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

Правка en3, от Racer5x, 2020-03-21 18:58:44

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)

SOLVED!!!!

Теги segtree, #trees, cses, #dfs

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en3 Английский Racer5x 2020-03-21 18:58:44 16 Tiny change: 'English)\n' -> 'English)\n\n\nSOLVED!!!!\n'
en2 Английский Racer5x 2020-03-21 14:40:54 54
en1 Английский Racer5x 2020-03-21 14:39:04 4297 Initial revision (published)