Блог пользователя retr0coderxyz

Автор retr0coderxyz, история, 4 года назад, По-английски

Hello Community,

I am trying to learn to find LCA using binary lifting method. But, I am unable to find where does my code fail. It would be great if someone could point this out.

Problem: LCA

Solution: Solution

Please Help me with this guys ! Please. Thank you!

  • Проголосовать: нравится
  • -9
  • Проголосовать: не нравится

»
4 года назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

One mistake which I noticed in line 118 you are using && instead of &

»
4 года назад, # |
  Проголосовать: нравится +3 Проголосовать: не нравится

Error in line 118 (not "&&", but "&"). And another error in the 194 line (not "t", but "i", since you print the test number)