Abstract Linked Lists - v1.1.0
    Preparing search index...

    Interface ILinkedList<N>

    Base interface for all linked list implementations. Provides the common structure and properties shared by both singly and doubly linked lists.

    interface ILinkedList<N> {
        head: N | null;
        size: number;
        tail: N | null;
    }

    Type Parameters

    • N

      The type of nodes contained in the list.

    Hierarchy (View Summary)

    Index

    Properties

    Properties

    head: N | null

    Reference to the first node in the list. Set to null when the list is empty.

    size: number

    The current number of nodes in the list.

    tail: N | null

    Reference to the last node in the list. Set to null when the list is empty.