Documentation
¶
Index ¶
- type Array
- func (a *Array) Add(index int, e interface{})
- func (a *Array) AddFirst(e interface{})
- func (a *Array) AddLast(e interface{})
- func (a *Array) Contains(e interface{}) bool
- func (a *Array) Find(e interface{}) int
- func (a *Array) FindAll(e interface{}) (indexes []int)
- func (a *Array) Get(index int) interface{}
- func (a *Array) GetCapacity() int
- func (a *Array) GetFirst() interface{}
- func (a *Array) GetLast() interface{}
- func (a *Array) GetSize() int
- func (a *Array) IsEmpty() bool
- func (a *Array) Remove(index int) interface{}
- func (a *Array) RemoveAllElement(e interface{}) bool
- func (a *Array) RemoveElement(e interface{})
- func (a *Array) RemoveFirst() interface{}
- func (a *Array) RemoveLast() interface{}
- func (a *Array) Set(index int, e interface{})
- type ArrayQueue
- type Pair
- type Queue
- type TreeNode
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Array ¶
type Array struct {
// contains filtered or unexported fields
}
type ArrayQueue ¶
type ArrayQueue struct {
// contains filtered or unexported fields
}
func GetArrayQueue ¶
func GetArrayQueue(capacity int) *ArrayQueue
func (*ArrayQueue) Dequeue ¶
func (a *ArrayQueue) Dequeue() interface{}
func (*ArrayQueue) Enqueue ¶
func (a *ArrayQueue) Enqueue(e interface{})
func (*ArrayQueue) GetCapacity ¶
func (a *ArrayQueue) GetCapacity() int
func (*ArrayQueue) GetFront ¶
func (a *ArrayQueue) GetFront() interface{}
func (*ArrayQueue) GetSize ¶
func (a *ArrayQueue) GetSize() int
func (*ArrayQueue) IsEmpty ¶
func (a *ArrayQueue) IsEmpty() bool
Click to show internal directories.
Click to hide internal directories.