Apple logoApple
Coding·45 minMembers

Lazy Binary Tree Inorder Iterator

Members only

Design an iterator over a binary tree that returns nodes in inorder sequence without precomputing all values. The follow-up asks about multiple iterators and thread safety.

SWE
tree
iterator
stack
tree-traversal
medium
Frequency
Single report
Last asked
2026-01-29
Stage
phone-screen

Log in to continue reading the full content

Comments

Sign in to join the discussion
Loading...