Fetching algorithms...
root = [3,1,4,null,2], k = 1
1
root = [5,3,6,2,4,null,null,1], k = 3
3
Time Complexity
Space Complexity