Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkedList ¶
type LinkedList[V comparable] struct { // contains filtered or unexported fields }
func NewLinkedList ¶
func NewLinkedList[V comparable]() *LinkedList[V]
func (*LinkedList[V]) AddNode ¶
func (l *LinkedList[V]) AddNode(value V)
func (*LinkedList[V]) Duplicate ¶
func (l *LinkedList[V]) Duplicate() *LinkedList[V]
func (*LinkedList[V]) GetLastNode ¶
func (l *LinkedList[V]) GetLastNode() *LinkedListNode[V]
func (*LinkedList[V]) PrintNodes ¶
func (l *LinkedList[V]) PrintNodes() string
func (*LinkedList[V]) Size ¶
func (l *LinkedList[V]) Size() int
func (*LinkedList[V]) StartsAndEndWithValues ¶
func (l *LinkedList[V]) StartsAndEndWithValues(start, end V) bool
type LinkedListNode ¶
type LinkedListNode[V comparable] struct { Value V Parent *LinkedListNode[V] }
type Stack ¶
type Stack[V any] struct { Items []V }
func (*Stack[V]) RemoveItems ¶
func (*Stack[V]) ReverseItems ¶
Click to show internal directories.
Click to hide internal directories.