Find the 2nd smallest element of a perfect binary tree in O(log n).
Unlock detailed company stats for this questionUpgrade
Given a perfect binary tree where each node is the smallest element of the entire subtree it roots, find the 2nd smallest element of the whole tree in O(log n) time.
Community answers
No answers contributed by the community yet.
Related questions
Find the k-th smallest and k-th largest element in a binary search tree (BST).Find the K'th smallest element in an array.Find the K smallest elements of an array.Related courses

Course

Course
Course
