Grokking 75: Top Coding Interview Questions
0% completed
Kth Smallest Element in a BST (medium)
.....
.....
.....
Like the course? Get enrolled and start learning!
A
Anonymous
· 2 years ago
It assumes that the tree is ordered but this last example is not:
[10, 5, 15, 3, 7, 13, 18, 2, 4, 6, 8], k = 6
if you ask for k=8 or k=10 will not work.
Reading Progress
0%