Today I read about treap(cartesian tree). It is mix of tree and heap. And I have a question. Can we implement it through arrays? If such way exists please give me link on implementation. It will be better if it will be in C++. But any other language will be good too. Thank you!