What is the average running time of a treap?
(b) O(N log N)
(c) O(log N)
(d) O(M log N)
This intriguing question comes from Binary Trees topic in chapter Binary Trees of Data Structures & Algorithms I
This question was addressed to me in a national level competition.