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?
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?