arbcrt040's blog

By arbcrt040, history, 9 years ago, In English

Hello guys :)

I've read this blog by adamant. So my question is: Is there a way to get kth number in a multiset. Thanks in advance.

(Sorry for bad English)

Full text and comments »

  • Vote: I like it
  • +6
  • Vote: I do not like it

By arbcrt040, history, 9 years ago, In English

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.
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 :)

Full text and comments »

  • Vote: I like it
  • +3
  • Vote: I do not like it