Documentation ¶
Index ¶
- func GenTwoIntersectLink(a int, b int, c int) (*SingleLinkedList[int], *SingleLinkedList[int])
- type MyArray
- type Node
- type SingleLinkedList
- func (sl *SingleLinkedList[T]) Add(v T)
- func (sl *SingleLinkedList[T]) Del(v T)
- func (sl *SingleLinkedList[T]) Empty() bool
- func (sl *SingleLinkedList[T]) Head() *Node[T]
- func (sl *SingleLinkedList[T]) Merge(al *SingleLinkedList[T])
- func (sl *SingleLinkedList[T]) Print()
- func (sl *SingleLinkedList[T]) Seek(v T) (pre *Node[T], now *Node[T])
- type Stack
- type StackErrEmpty
- type StackErrFull
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenTwoIntersectLink ¶
func GenTwoIntersectLink(a int, b int, c int) (*SingleLinkedList[int], *SingleLinkedList[int])
Types ¶
type MyArray ¶
func NewMyArray ¶
type Node ¶
type Node[T comparable] struct { // contains filtered or unexported fields }
func NewNode ¶
func NewNode[T comparable](v T) *Node[T]
type SingleLinkedList ¶
type SingleLinkedList[T comparable] struct { // contains filtered or unexported fields }
func NewSingleLinkedList ¶
func NewSingleLinkedList[T comparable]() *SingleLinkedList[T]
func (*SingleLinkedList[T]) Add ¶
func (sl *SingleLinkedList[T]) Add(v T)
func (*SingleLinkedList[T]) Del ¶
func (sl *SingleLinkedList[T]) Del(v T)
func (*SingleLinkedList[T]) Empty ¶
func (sl *SingleLinkedList[T]) Empty() bool
func (*SingleLinkedList[T]) Head ¶
func (sl *SingleLinkedList[T]) Head() *Node[T]
func (*SingleLinkedList[T]) Merge ¶
func (sl *SingleLinkedList[T]) Merge(al *SingleLinkedList[T])
func (*SingleLinkedList[T]) Print ¶
func (sl *SingleLinkedList[T]) Print()
func (*SingleLinkedList[T]) Seek ¶
func (sl *SingleLinkedList[T]) Seek(v T) (pre *Node[T], now *Node[T])
type StackErrEmpty ¶
type StackErrEmpty error
type StackErrFull ¶
type StackErrFull error
Click to show internal directories.
Click to hide internal directories.