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

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

Can anyone tell me how to solve this problem: 208E.

I saw few solutions and I understood till the LCA part I dont understand why should we renumber the tree and why is binary search used here. It would be great if anybody could help me out with this. Please and thank you so much :)

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

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

so do you know what the LCA is!?