help regarding spoj problem KQUERY (using presistent segment tree)

Revision en1, by asqre756, 2021-11-24 22:05:48

I am trying to implement KQUERY from spoj using persistent segment tree CodeLink but getting WA. Unable to figure

Done it with mergeSortTree and can also be done using MO's and Fenwick tree but getting WA in persistent segment tree.

Please Help!

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English asqre756 2021-11-25 08:38:00 139
en1 English asqre756 2021-11-24 22:05:48 387 Initial revision (published)