stacking

1.0.0 • Public • Published

stack implementation in JavaScript

Push:

Adds an item in the stack. If the stack is full, then it is said to be an Overflow condition.

Pop:

Removes an item from the stack. The items are popped in the reversed order in which they are pushed. If the stack is empty, then it is said to be an Underflow condition.

Peek:

Returns top element of stack.

isEmpty:

Returns true if stack is empty, else false.

printAllStack

print all items in stack.

length

length stack.

Readme

Keywords

none

Package Sidebar

Install

npm i stacking

Weekly Downloads

2

Version

1.0.0

License

ISC

Unpacked Size

2.27 kB

Total Files

3

Last publish

Collaborators

  • ma_kazemi