The ones who are crazy enough to think they can change the world are the ones who do.
- Steve Jobs

Stacks

Stack is an important data structure in which the elements are stored one above the another which is likely to arranging the test notes after completing the exam. Thus, both insertion and deletion operation of element can be done at top end only. Whenever, new elements are pushed or inserted into the stack, the old element moves done one position. In stack data structure, the first elements is reffered as the top element and it is the only element that may be accessed at any time. A stack is well known as Last In First Out.

Realtime Applications - Stacks

  • Processing the submitted application form manually
  • Serving the food with last washed plate
  • Tower of Hanoi

Operations - Stack

Push

Insert an element at the top of the stack

Pop

Delete an element at the top of the stack.

Peek

Return an element at the top of the stack without deleting.

Make Null

Clear all the data in the stack.

Isempty

Returns integer value '1' if stack is empty. Otherwise return '0'.

Report Us

We may make mistakes(spelling, program bug, typing mistake and etc.), So we have this container to collect mistakes. We highly respect your findings.

Report