Apiram's blog

By Apiram, history, 17 months ago, In English

https://www.spoj.com/problems/COT/ I saw most mentioned that it could be solved using Persistent Segment Tree,HLD and also Centroid Decomposition. But I tried differently using parallel Binary Search + Fenwick tree.

How
code
  • Vote: I like it
  • +5
  • Vote: I do not like it