Skip to content
RED SAG Skills
hard20 pts · first answer countsgraphsbinary-search-treetree-traversal

Cost of a BST iterator

A BST iterator keeps a stack of left-path nodes and pushes the left path of each right child after next(). What are its costs?

Choose one answer

Discussion 0

Join free to post in the discussion.

Related questions