Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkedList ¶
type LinkedList struct { Data interface{} Next *LinkedList }
func NewLinkedList ¶
func NewLinkedList() *LinkedList
func RecursiveReverse ¶
func RecursiveReverse(head *LinkedList) *LinkedList
RecursiveReverse 递归调用反转 n - 1 子链
func (*LinkedList) Append ¶
func (l *LinkedList) Append(node *LinkedList)
func (*LinkedList) GenerateLinkedList ¶
func (l *LinkedList) GenerateLinkedList(len int)
func (*LinkedList) Insert ¶
func (l *LinkedList) Insert(node *LinkedList)
func (*LinkedList) PrintLindedList ¶
func (l *LinkedList) PrintLindedList()
func (*LinkedList) Reverse ¶
func (l *LinkedList) Reverse()
Click to show internal directories.
Click to hide internal directories.