Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Stack

Stack implementation using a doubly linked list.

Hierarchy

  • Stack

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private dll

dll: DoublyLinkedList = new DoublyLinkedList()

Methods

getSize

  • getSize(): number
  • Gets the size of the stack.

    Returns number

isEmpty

  • isEmpty(): boolean
  • Returns true or false indicating if the stack is empty or not.

    Returns boolean

pop

  • pop(): any
  • Pops an item off the top of the stack.

    Returns any

push

  • push(item: any): void
  • Pushes a item on the top of the stack.

    Parameters

    • item: any

    Returns void

Generated using TypeDoc