data structure problem
Difference between en2 and en3, changed 56 character(s)
Greetings.↵

I was trying to solve one problem, but couldn't. It's like the RMQ problem but with add at position operation.↵

There are 2 operations:↵

ADD i X   ----   ads X after ith element.<br></br>↵
QUERY l r    ----   RMQ of [l; r].↵

Can someone help me, please? Thanks in advance.↵

(Sorry bad English)


**EDIT:** Thanks everybody for help! Got accepted :)

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English arbcrt040 2015-08-05 18:25:15 56 Tiny change: 'd English)' -> 'd English)\n\n**EDIT:** Thanks everybody for help! Got accepted :)'
en2 English arbcrt040 2015-08-05 15:00:24 10
en1 English arbcrt040 2015-08-05 14:59:36 327 Initial revision (published)