Skip to main content
DevHives

Kth Smallest Value in a BST

Loading editor…

3 examples run when you press Run. Submit checks every hidden test too.

Case 1
Input:
[50,30,70,20,40,60,80], 3
Expected:
40
Case 2
Input:
[9,4,null,1,6,null,2], 2
Expected:
2
Case 3
Input:
[15], 1
Expected:
15
Ready

Run checks your code against the 3 examples. Submit checks it against all 153 tests and needs a free account. You can also try ideas in the free JavaScript or Python compiler.