solution

package
v0.0.0-...-9b92ec5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 3, 2021 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Export

func Export()

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

func (*BSTIterator) Next

func (this *BSTIterator) Next() int

* @return the next smallest number

type TreeNode

type TreeNode = tree.Node

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL