Can MKTHNUM be solved with treap ?
I was learning about treap sometime back and I was trying a few problems today. Now I am wondering if MKTHNUM can be solved using a treap. And if possible can insertion queries also be handled with it ??
CodeChef Starters 133 Solution Discussion