Question 6 - Past Year - 2 Mark Questions - Chapter 3 - Stacks
Last updated at April 16, 2024 by Teachoo
Define stack.
Answer:
A stack is a data structure in which elements are arranged in a linear order.
In a stack, insertion and deletion takes place at one end i.e., the top of the stack.
Additional points:
Inserting into a stack is called a PUSH operation and deleting from a stack is called a POP operation.
A stack follows the LIFO principle i.e., an element which is inserted last will be the first one to be taken out.
Transcript
Define stack.
Answer:
A stack is a data structure in which elements are arranged in a linear order.
In a stack, insertion and deletion takes place at one end i.e., the top of the stack.
Additional points:
Inserting into a stack is called a PUSH operation and deleting from a stack is called a POP operation.
A stack follows the LIFO principle i.e., an element which is inserted last will be the first one to be taken out.
Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 14 years. He provides courses for Maths, Science, Social Science, Physics, Chemistry, Computer Science at Teachoo.
Hi, it looks like you're using AdBlock :(
Displaying ads are our only source of revenue. To help Teachoo create more content, and view the ad-free version of Teachooo... please purchase Teachoo Black subscription.
Please login to view more pages. It's free :)
Teachoo gives you a better experience when you're logged in. Please login :)
Solve all your doubts with Teachoo Black!
Teachoo answers all your questions if you are a Black user!