A sorted linked list.

Type Parameters

  • T

Constructors

Properties

Accessors

Methods

Constructors

  • Type Parameters

    • T

    Parameters

    • comparator: (a: T, b: T) => number

    Returns SortedLinkedList<T>

Properties

_first?: LinkedListItem<T>
_last?: LinkedListItem<T>
_size: number = 0

Accessors

  • get length(): number
  • Returns number

Methods

  • Parameters

    • item: LinkedListItem<T>

    Returns void

  • Parameters

    • item: T

    Returns void

  • Returns void

  • Returns undefined | T