43 lines
929 B
Go
43 lines
929 B
Go
package linkedlist
|
|
|
|
// Define List and Node types here.
|
|
|
|
func NewList(args ...interface{}) *List {
|
|
panic("Please implement the NewList function")
|
|
}
|
|
|
|
func (n *Node) Next() *Node {
|
|
panic("Please implement the Next function")
|
|
}
|
|
|
|
func (n *Node) Prev() *Node {
|
|
panic("Please implement the Prev function")
|
|
}
|
|
|
|
func (l *List) PushFront(v interface{}) {
|
|
panic("Please implement the PushFront function")
|
|
}
|
|
|
|
func (l *List) PushBack(v interface{}) {
|
|
panic("Please implement the PushBack function")
|
|
}
|
|
|
|
func (l *List) PopFront() (interface{}, error) {
|
|
panic("Please implement the PopFront function")
|
|
}
|
|
|
|
func (l *List) PopBack() (interface{}, error) {
|
|
panic("Please implement the PopBack function")
|
|
}
|
|
|
|
func (l *List) Reverse() {
|
|
panic("Please implement the Reverse function")
|
|
}
|
|
|
|
func (l *List) First() *Node {
|
|
panic("Please implement the First function")
|
|
}
|
|
|
|
func (l *List) Last() *Node {
|
|
panic("Please implement the Last function")
|
|
}
|