Racer5x's blog

By Racer5x, history, 4 years ago, In English

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!!!!

Full text and comments »

  • Vote: I like it
  • +10
  • Vote: I do not like it