Concept Flow - Kth Smallest Element in BST
Start at root
Inorder traversal left subtree
Visit current node
Count nodes visited
Is count == k?
No→Inorder traversal right subtree
Yes
Return current node value
Done
We do an inorder traversal of the BST, counting nodes visited. When count reaches k, we return that node's value.
