stacking

    1.0.0 • Public • Published

    stack implementation in JavaScript

    Push:

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

    Pop:

    <p>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.</p>
    

    Peek:

    <p>Returns top element of stack.</p>
    

    isEmpty:

    <p>Returns true if stack is empty, else false.</p>
    

    printAllStack

    <p>print all items in stack.</p>
    

    length

    <p>length stack. </p>

    Keywords

    none

    Install

    npm i stacking

    DownloadsWeekly Downloads

    4

    Version

    1.0.0

    License

    ISC

    Unpacked Size

    2.27 kB

    Total Files

    3

    Last publish

    Collaborators

    • ma_kazemi