Блог пользователя r_sazid77

Автор r_sazid77, история, 10 месяцев назад, По-английски,


how to solve this problem?? I tried a lot but i didn't get any idea how to solve this..

Thanks in Advance :)


10 месяцев назад, # |
  Проголосовать: нравится +6 Проголосовать: не нравится

Umm, The problem just asks you to create a treap, which is a very standard data structure. Simple googling will provide you with a code and explanation.


  • »
    10 месяцев назад, # ^ |
      Проголосовать: нравится 0 Проголосовать: не нравится

    I found this problem in a list of segment tree problem, so i thought it is solvable by segtree , but thanks for your idea :)