Documentation ¶
Index ¶
- func ArrayListExample()
- func ArrayStackExample()
- func BinaryHeapExample()
- func CustomComparatorExample()
- func DoublyLinkedListExample()
- func EnumerableWithIndexExample()
- func EunumerableWithKeyExample()
- func HashMapExample()
- func HashSetExample()
- func LinkedListStackExample()
- func RedBlackTreeExample()
- func RedBlackTreeExtendedExample()
- func SinglyLinkedListExample()
- func SortExample()
- func TreeMapExample()
- func TreeSetExample()
- type RedBlackTreeExtended
- func (tree *RedBlackTreeExtended) GetMax() (value interface{}, found bool)
- func (tree *RedBlackTreeExtended) GetMin() (value interface{}, found bool)
- func (tree *RedBlackTreeExtended) RemoveMax() (value interface{}, deleted bool)
- func (tree *RedBlackTreeExtended) RemoveMin() (value interface{}, deleted bool)
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ArrayListExample ¶
func ArrayListExample()
ArrayListExample to demonstrate basic usage of ArrayList
func ArrayStackExample ¶
func ArrayStackExample()
ArrayStackExample to demonstrate basic usage of ArrayStack
func BinaryHeapExample ¶
func BinaryHeapExample()
BinaryHeapExample to demonstrate basic usage of BinaryHeap
func CustomComparatorExample ¶
func CustomComparatorExample()
CustomComparatorExample to demonstrate basic usage of CustomComparator
func DoublyLinkedListExample ¶
func DoublyLinkedListExample()
DoublyLinkedListExample to demonstrate basic usage of DoublyLinkedList
func EnumerableWithIndexExample ¶ added in v1.1.0
func EnumerableWithIndexExample()
EnumerableWithIndexExample to demonstrate basic usage of EnumerableWithIndex
func EunumerableWithKeyExample ¶ added in v1.1.0
func EunumerableWithKeyExample()
EunumerableWithKeyExample to demonstrate basic usage of EunumerableWithKey
func LinkedListStackExample ¶
func LinkedListStackExample()
LinkedListStackExample to demonstrate basic usage of LinkedListStack
func RedBlackTreeExample ¶
func RedBlackTreeExample()
RedBlackTreeExample to demonstrate basic usage of RedBlackTree
func RedBlackTreeExtendedExample ¶
func RedBlackTreeExtendedExample()
RedBlackTreeExtendedExample main method on how to use the custom red-black tree above
func SinglyLinkedListExample ¶
func SinglyLinkedListExample()
SinglyLinkedListExample to demonstrate basic usage of SinglyLinkedList
Types ¶
type RedBlackTreeExtended ¶
RedBlackTreeExtended to demonstrate how to extend a RedBlackTree to include new functions
func (*RedBlackTreeExtended) GetMax ¶
func (tree *RedBlackTreeExtended) GetMax() (value interface{}, found bool)
GetMax gets the max value and flag if found
func (*RedBlackTreeExtended) GetMin ¶
func (tree *RedBlackTreeExtended) GetMin() (value interface{}, found bool)
GetMin gets the min value and flag if found
func (*RedBlackTreeExtended) RemoveMax ¶
func (tree *RedBlackTreeExtended) RemoveMax() (value interface{}, deleted bool)
RemoveMax removes the max value and flag if found
func (*RedBlackTreeExtended) RemoveMin ¶
func (tree *RedBlackTreeExtended) RemoveMin() (value interface{}, deleted bool)
RemoveMin removes the min value and flag if found