Options
All
  • Public
  • Public/Protected
  • All
Menu

class Stack

export

Type parameters

  • T

Hierarchy

  • Stack

Index

Constructors

Properties

Accessors

Methods

Constructors

constructor

  • new Stack<T>(): Stack<T>
  • Type parameters

    • T

    Returns Stack<T>

Properties

items

items: DoublyLinkedList<T> = ...

Accessors

length

  • get length(): number
  • get queue length Runtime: O(1)

    memberof

    Stack

    Returns number

    return number of element in the queue

Methods

isEmpty

  • isEmpty(): boolean
  • check whether if queue length is empty Runtime: O(1)

    memberof

    Stack

    Returns boolean

    return true if queue is empty, false otherwise

pop

push

  • push(item: T): void

Legend

  • Class
  • Class with type parameter
  • Property
  • Method
  • Function
  • Type alias with type parameter
  • Enumeration
  • Interface

Generated using TypeDoc