Documentation
¶
Overview ¶
Package linkedlist implements:
Create a a new Linkedlist and Node Insert a Node at the beginning of the list Insert a Node at the end of the list Delete a Node from the beginning of the list Delete a Node from the end of the list Print the Linkedlis
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Linkedlist ¶
Linkedlist struct holds a linked list
func (*Linkedlist) AddAtBeg ¶
func (ll *Linkedlist) AddAtBeg(val int)
AddAtBeg adds a Node at the beginning of the list
func (*Linkedlist) AddAtEnd ¶
func (ll *Linkedlist) AddAtEnd(val int)
AddAtEnd adds a Node at the end of the list
func (*Linkedlist) DelAtBeg ¶
func (ll *Linkedlist) DelAtBeg() int
DelAtBeg deletes a node from the beginning of the list
func (*Linkedlist) DelAtEnd ¶
func (ll *Linkedlist) DelAtEnd() int
DelAtEnd deletes a node from the end of the list
func (*Linkedlist) DeleteWithValute ¶
func (ll *Linkedlist) DeleteWithValute(val int) int
DeleteWithValute deletes a node which value is equal to the function parameter
func (*Linkedlist) String ¶
func (ll *Linkedlist) String() string
utility function to print the linkedlist
Click to show internal directories.
Click to hide internal directories.