Finally solved SPOJ COT Problem

Revision en4, by Apiram, 2023-08-04 10:04:05

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

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en4 English Apiram 2023-08-04 10:04:05 35
en3 English Apiram 2023-08-03 22:25:04 36 Tiny change: 'I saw most' -> 'https://www.spoj.com/problems/COT/\nI saw most'
en2 English Apiram 2023-08-03 22:22:41 7 Tiny change: 'd values, we pick node' -> 'd values, pick node'
en1 English Apiram 2023-08-03 22:21:20 4406 Initial revision (published)