Find the Kth Smallest Value in a Binary Search Tree

Quick Overview

Build a binary search tree from a breadth-first serialization and return its kth smallest value. The prompt defines one-based rank, explicit nulls, implicitly null trailing slots, distinct keys, valid inputs, and a large-tree bound suitable for iterative in-order traversal.

Find the Kth Smallest Value in a Binary Search Tree

Company: Amazon

Role: Software Engineer

Category: Coding & Algorithms

Difficulty: medium

Interview Round: Onsite

Overview: Build a binary search tree from a breadth-first serialization and return its kth smallest value. The prompt defines one-based rank, explicit nulls, implicitly null trailing slots, distinct keys, valid inputs, and a large-tree bound suitable for iterative in-order traversal.

Amazon logo
Amazon
Aug 26, 2026
mediumSoftware EngineerOnsiteCoding & Algorithms
4
0
Loading...