func (l *DoublyLinkedList) Append(val int) {
	if l.Head == nil {
		l.Head = &Node{value: val}
		l.Tail = l.Head
		return
	}

	l.Tail.right = &Node{value: val, left: l.Tail}
	l.Tail = l.Tail.right
}
// Append a value to the end of the linked list
Append a value to the end of the linked list
// Append a value to the end of the linked list
func (l *DoublyLinkedList) Append(val int) {
	if l.Head == nil {
		l.Head = &Node{value: val}
		l.Tail = l.Head
		return
	}
	l.Tail.right = &Node{value: val, left: l.Tail}
	l.Tail = l.Tail.right
}
func ( l * DoublyLinkedList ) Append ( val int ) { if l . Head == nil { l . Head = & Node { value : val } l . Tail = l . Head return } l . Tail . right = & Node { value : val , left : l . Tail } l . Tail = l . Tail . right }
Append a value to the end of the linked list
Append a value to the end of the linked list