x

Choose Country Code

x

Direction

x

Ask a Question

  • Ask a Question
  • Scan a Question
  • Post MCQ
  • Note: File extension must be of jpg, jpeg, png, bmp format and file size must not exceed 5 MB
x

Ask a Question

x

x
x
x
Hire a Tutor

Answers and Solutions

What's Your Question?
Answer
A stack is an abstract data type that serves as a collection of elements, with two principal operations: push, which adds an element to the collection, and pop, which removes the most recently added element that was not yet removed. The order in which elements come off a stack gives rise to its alternative name, LIFO (for last in, first out). Applications 1. The simplest application of a stack is to reverse a word. You push a given word to stack - letter by letter - and then pop letters from the stack. 2. Another application is an "undo" mechanism in text editors; this operation is accomplished by keeping all text changes in a stack.
Answer
Stack is a type of data structure which follows LIFO( last in first out) . For example a pile of books..to remove the third book... First we remove first book then second book and then the third.

Post Answer and Earn Credit Points

Get 5 credit points for each correct answer. The best one gets 25 in all.

Post Answer