← Walmart questions
CodingReported in a candidate post, Jul 2025

Find the k-th smallest element in a BST

Filed under Walmart · Also reported at JM Financial

Given the root of a binary search tree and an integer k, return the k-th smallest value (1-indexed), or None if the tree has fewer than k nodes.

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Walmart questions

Collected from public candidate posts and coding forums. Updated Nov 2026.