173 Binary Search Tree Iterator

Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.  实现一个适用于二叉查找树的迭代器,该迭代器通过二叉查找树的根结点来实例化。 Calling next() will return the next smalles
相关文章
相关标签/搜索