package linkedlist
// Node Structure representing the linkedlist node.
// This node is shared across different implementations.
type Node struct {
Val any
Prev *Node
Next *Node
}
// Create new node.
func NewNode(val any) *Node {
return &Node{val, nil, nil}
}
Β© Alger 2022