October Circuit Problem(Hackerearth)

Revision en1, by xyz_000, 2018-11-04 19:51:25

Please help with this problem from October circuit from Hackerearth. In their editorial they just posted solution code. Please provide some idea(I know that Segment tree can be used) but I am not sure how to handle the reverse operation.

Tags #segment tree

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English xyz_000 2018-11-04 19:51:25 425 Initial revision (published)