Codeforces Round 1133 (Div. 1, Div. 2) is coming soon! Register here. ×

Alex7's blog

By Alex7, 14 years ago, In English

I've read the topcoder tutorial about finding LCA using dp (this one) but I couldn't understand how the query function work. Any help would be appreciated.

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