0

Binary Search Tree Iterator

Mediummust do
Binary Search TreeSDE 25030 min targetfrequency 4/5LeetCode 173
Already solved this on LeetCode?
Mark it and you get similar problems you have not done instead of a repeat.
Quick refresher
A one-minute recap of how to solve it. Folded so it does not spoil a first attempt.
Hints
0 of 3 revealed
Hint 2 locked
Hint 3 locked
Approach
Try it first. Revealing the approach does not cost XP, but solving it unaided is worth more.
Scratchpad

Runs in a worker with a 2.5 second cap, so an infinite loop cannot lock the page.

Your notes
Solve it on

Direct links where the exact problem id is known, search links otherwise. The same question often appears under a different title on each platform.

Your model
BST Ordering18%
Composite Data Structure Design18%
Binary Search Tree18%

Knowledge-tracing estimate of the chance you have each skill. Solving updates it up, giving up updates it down.

Same idea, different wrapper
target 30m