May 2111 min read
Kth Smallest Element in a BST: A Step-by-Step Interview Walkthrough
Kth Smallest Element in a BST is a problem interviewers reach for when they want to see whether you actually understand what a BST gives you, or whether you treat it as "just a tree." The interviewer is watching for whether you exploit that ordering or wastefully recompute it. The signal here is whether you treat a data structure's invariants as algorithmic information.