A-057● Day 572026.07.03
// problem.statement
mediumleetcode #230neetcode150#tree#depth-first-search#binary-search-tree#binary-tree
topic
Kth Smallest Element in a BST
Given the root of a binary search tree, and an integer k, return the kth smallest value (1-indexed) of all the values of the nodes in the tree.
four stages
· clarifying — pick the right questions· approach — pick the right approach·complexity· logic — code synthesis (slot quiz)· trace — mental dry-run
one-thumb subway dojoenter →