221D — Little Elephant and Array

Revision en1, by Tribbiani, 2015-08-27 22:52:01

I've solved this problem using sqrt decomposition. but how can i solve it using segment tree?

Thanks in advance :)

Tags data structures

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English Tribbiani 2015-08-27 22:52:01 202 Initial revision (published)