Bug Report for https://neetcode.io/problems/binary-search-tree-iterator
Please describe the bug below and include any steps to reproduce the bug or screenshots if possible.
Time complexity for next and hasNext should be O(1)
For solutions
- Flattening the BST (DFS) and 2. Flatten the BST (Iterative DFS)
