Interface Node

Represents a node with a key and associated data. Useful for data structures like trees or graphs.

interface Node {
    data: any;
    key: number;
}

Properties

Properties

data: any

The data associated with the node.

key: number

The unique identifier for the node.