Reminder: in case of any technical issues, you can use the lightweight website m1.codeforces.com, m2.codeforces.com, m3.codeforces.com. ×

kadkhoda's blog

By kadkhoda, 6 years ago, In English,

I khnow how to solve this problem using Fenwick tree and it is so easy.but I am intrested in to know how to solve this problem using RMQs I have read the tutorial but i dont understand.can any one write its code using RMQs.thanks.

Read more »

 
 
 
 
  • Vote: I like it
  • -5
  • Vote: I do not like it