goluuuuu's blog

By goluuuuu, history, 6 years ago, In English

I am facing an error in solving the Question from SecondThread's gym on Tree basics. Since, I cannot view the testcases where my code is failing, I need some help. I also cannot see other's solution because you need >1900 rating. Can someone share their solution in C++ or point out the mistake in my code? I promise that the code is quite readable.

CODE:
  • Vote: I like it
  • -19
  • Vote: I do not like it

»
6 years ago, hide # |
Rev. 2  
Vote: I like it +26 Vote: I do not like it

The question is, why are you posting these blogs from an alt karad?

»
6 years ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

Here is my solution https://ideone.com/pyik9v . Not the best code for binary lifting but it's accepted.