πDay 11. k-th Smallest in BST π§
π‘ Problem Description:
π Example Walkthrough:
Example 1:
Input:
2
/ \
1 3
k = 2Output:
2Explanation:
Example 2:
Input:
Output:
Explanation:
Example 3:
Input:
Output:
Explanation:
Constraints:
π― My Approach:
Morris Inorder Traversal (O(1) Space)
Algorithm Steps:
π Time and Auxiliary Space Complexity
π Solution Code
Code (C)
Code (C++)
Code (Java)
Code (Python)
π― Contribution and Support:
πVisitor Count
Last updated