func (l DoublyLinkedList) HasElem(val int) bool {
	tmp := l.Head

	for tmp != nil {
		if tmp.value == val {
			return true
		}

		tmp = tmp.right
	}

	return false
}
// HasElem checks if the Linked List contains the value
HasElem checks if the Linked List contains the value
// HasElem checks if the Linked List contains the value
func (l DoublyLinkedList) HasElem(val int) bool {
	tmp := l.Head
	for tmp != nil {
		if tmp.value == val {
			return true
		}
		tmp = tmp.right
	}
	return false
}
func ( l DoublyLinkedList ) HasElem ( val int ) bool { tmp := l . Head for tmp != nil { if tmp . value == val { return true } tmp = tmp . right } return false }
HasElem checks if the Linked List contains the value
HasElem checks if the Linked List contains the value