theGreyHound's blog

By theGreyHound, history, 14 months ago, In English

https://cses.fi/problemset/task/2134 => Path Queries 2. Used Heavy light decomposition. But I am getting tle verdict. Here is my code:https://pastebin.ubuntu.com/p/rFwVQfCd7v/ Is there some error in the code or there is some optimization needed?

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

»
14 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by theGreyHound (previous revision, new revision, compare).

»
14 months ago, # |
  Vote: I like it 0 Vote: I do not like it

Auto comment: topic has been updated by theGreyHound (previous revision, new revision, compare).