Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BSTIterator ¶
type BSTIterator struct {
// contains filtered or unexported fields
}
BSTIterator define
func (*BSTIterator) HasNext ¶
func (this *BSTIterator) HasNext() bool
* @return whether we have a next smallest number
type PriorityQueueOfInt ¶
type PriorityQueueOfInt []int
*
- Your BSTIterator object will be instantiated and called as such:
- obj := Constructor(root);
- param_1 := obj.Next();
- param_2 := obj.HasNext();
func (PriorityQueueOfInt) Len ¶
func (pq PriorityQueueOfInt) Len() int
func (PriorityQueueOfInt) Less ¶
func (pq PriorityQueueOfInt) Less(i, j int) bool
func (*PriorityQueueOfInt) Pop ¶
func (pq *PriorityQueueOfInt) Pop() interface{}
func (*PriorityQueueOfInt) Push ¶
func (pq *PriorityQueueOfInt) Push(x interface{})
func (PriorityQueueOfInt) Swap ¶
func (pq PriorityQueueOfInt) Swap(i, j int)
Click to show internal directories.
Click to hide internal directories.