LeetCode Question · May 2020 · Los Angeles

Facebook | Phone | Binary Tree Preorder Iterator

5 upvotes 2,216 views 11 replies

Question Details

Implement a preorder iterator for a Binary Tree, need to be O N time and space needs to be less than O(N) or O(1). it needs to have the next and...

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Binary Search Binary Tree