Abstract Linked Lists - v1.0.4
    Preparing search index...
    • Generates an iterator that traverses a doubly linked list in reverse order (tail to head).

      Takes advantage of previous pointers for direct backward traversal, unlike singly linked lists.

      • Time Complexity (complete traversal): O(n)
      • Space Complexity: O(1)- only stores current node reference.

      Type Parameters

      Parameters

      • tail: null | N

        The tail node of the list, or null if the list is empty.

      Returns Generator<N, void, unknown>

      An iterator yielding nodes in reverse order.