Блог пользователя res_and_ser

Автор res_and_ser, 9 лет назад, По-английски

Hello codeforces community,

Is there anyone who has proper implementation of wavelet tree? I am having a hard time coding it.

I tried using the code mentioned below but its giving runtime error.

Code — https://ideone.com/Tkters

  • Проголосовать: нравится
  • -5
  • Проголосовать: не нравится

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

https://ideone.com/xzqIGH here is my implementation, if you have some questions feel free to ask :)

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

This one is my implementation: RangeQuery/WaveletTree