Solution to Binary Search Tree Iterator by LeetCode

24 Apr

Question: https://leetcode.com/problems/binary-search-tree-iterator/

Question Name: Binary Search Tree Iterator

The challenge is a variant of the iterative in-order traversal of BST. However, yield in python is much much better in implementing iterator, right?

Leave a Reply

Your email address will not be published. Required fields are marked *

Please put your code into a <pre>YOUR CODE</pre> section. Thanks and Happy Coding!