claporslap's blog

By claporslap, 6 years ago, In English

How can I calculate this with efficiency without using HLD or Link Cut Trees? I tried doing it with Binary Lifting but I am not able to do it correctly. Please guide me. Thanks.

Full text and comments »

  • Vote: I like it
  • 0
  • Vote: I do not like it