Documentation
¶
Index ¶
- type LinkedList
- func (list *LinkedList) Delete(index int) bool
- func (list *LinkedList) Find(index int) interface{}
- func (list *LinkedList) Insert(index int, value interface{}) bool
- func (list *LinkedList) InsertToHead(value interface{}) bool
- func (list *LinkedList) InsertToTail(value interface{}) bool
- func (list *LinkedList) IsEmpty() bool
- func (list *LinkedList) String() string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LinkedList ¶
type LinkedList struct {
// contains filtered or unexported fields
}
LinkedList 链表
func (*LinkedList) Insert ¶
func (list *LinkedList) Insert(index int, value interface{}) bool
Insert 在指定位置插入一个元素
func (*LinkedList) InsertToHead ¶
func (list *LinkedList) InsertToHead(value interface{}) bool
InsertToHead 在头部插入一个元素
func (*LinkedList) InsertToTail ¶
func (list *LinkedList) InsertToTail(value interface{}) bool
InsertToTail 在尾部插入一个元素
func (*LinkedList) String ¶
func (list *LinkedList) String() string
Click to show internal directories.
Click to hide internal directories.