Kth Smallest Element in a BST
Medium
Binary Search Tree
Given a BST in level-order form and an integer k, print the k-th smallest value (1-indexed).
Constraints
1 <= k <= number of nodes <= 10^4
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.