Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BSTIterator ¶
type BSTIterator struct { }
*
- Definition for a binary tree node.
- type TreeNode struct {
- Val int
- Left *TreeNode
- Right *TreeNode
- }
func Constructor ¶
func Constructor(root *TreeNode) BSTIterator
func (*BSTIterator) HasNext ¶
func (this *BSTIterator) HasNext() bool
* @return whether we have a next smallest number
Click to show internal directories.
Click to hide internal directories.