Skip to content
Courses
DSA to Development
Get IBM Certification
Newly Launched!
Master Django Framework
Become AWS Certified
For Working Professionals
Interview 101: DSA & System Design
Data Science Training Program
JAVA Backend Development (Live)
DevOps Engineering (LIVE)
Data Structures & Algorithms in Python
For Students
Placement Preparation Course
Data Science (Live)
Data Structure & Algorithm-Self Paced (C++/JAVA)
Master Competitive Programming (Live)
Full Stack Development with React & Node JS (Live)
Full Stack Development
Data Science Program
All Courses
Tutorials
Data Structures & Algorithms
ML & Data Science
Interview Corner
Programming Languages
Web Development
CS Subjects
DevOps And Linux
School Learning
Practice
Build your AI Agent
GfG 160
Problem of the Day
Practice Coding Problems
GfG SDE Sheet
Contests
Accenture Hackathon (Ending Soon!)
GfG Weekly [Rated Contest]
Job-A-Thon Hiring Challenge
All Contests and Events
DSA
Practice Problems
Python
C
C++
Java
Courses
Machine Learning
DevOps
Web Development
System Design
Aptitude
Projects
Sign In
▲
Similar Topics
DSA
22.3k+ articles
Arrays
6.4k+ articles
Competitive Programming
2.3k+ articles
Data Structures
1.1k+ articles
Graph
940+ articles
Stack
420+ articles
Data Structures
250+ articles
Data Structures-Graph
33 articles
Data Structures-Queue
23 articles
Data Structures-Tree Traversals
22 articles
Data Structures-Stack
17 posts
Popular Articles
Recent Articles
Implement Stack using Array
Last Updated: 21 March 2025
Stack is a linear data structure which follows LIFO principle. To implement a stack using an array, initialize an array and treat its end as
...read more
Stack
Data Structures-Stack
Picked
DSA
Kahn's Algorithm vs DFS Approach: A Comparative Analysis
Last Updated: 19 October 2023
Topological sorting is a common problem in computer science that involves arranging the vertices of a directed acyclic graph (DAG) in a line
...read more
Graph
Stack
Sorting
Topological Sorting
graph-connectivity
Data Structures-Tree Traversals
Data Structures-Stack
Data Structures-Graph
DSA
Applications, Advantages and Disadvantages of Stack
Last Updated: 03 November 2024
A stack is a linear data structure in which the insertion of a new element and removal of an existing element takes place at the same end re
...read more
Stack
Data Structures
Data Structures-Stack
Picked
DSA
Similar Topics
DSA
22.3k+ articles
Arrays
6.4k+ articles
Competitive Programming
2.3k+ articles
Data Structures
1.1k+ articles
Graph
940+ articles
Stack
420+ articles
Data Structures
250+ articles
Data Structures-Graph
33+ articles
Data Structures-Queue
23+ articles
Data Structures-Tree Traversals
22+ articles
Real-life Applications of Data Structures and Algorithms (DSA)
Last Updated: 31 July 2024
You may have heard that DSA is primarily used in the field of computer science. Although DSA is most commonly used in the computing field, i
...read more
Arrays
Linked List
Tree
Graph
Stack
Queue
Heap
Hash
Matrix
Data Structures
Data Structures
Data Structures-Binary Trees
Data Structures-Tree Traversals
Data Structures-Linked List
Data Structures-Stack
Data Structures-Queue
Data Structures-Graph
Data Structures-Balanced Binary Search Trees
Data Structures-Hash
Data Structures-Array
Data Structures-Misc
Data Structures-B and B+ Trees
Data Structures-Heap
DSA
LIFO (Last-In-First-Out) approach in Programming
Last Updated: 01 September 2022
Prerequisites - FIFO (First-In-First-Out) approach in Programming, FIFO vs LIFO approach in ProgrammingLIFO is an abbreviation for last in,
...read more
Stack
Data Structures-Stack
DSA
FIFO vs LIFO approach in Programming
Last Updated: 27 July 2022
FIFO is an abbreviation for first in, first out. It is a method for handling data structures where the first element is processed first and
...read more
Data Structures
Data Structures-Stack
Data Structures-Queue
DSA
Arithmetic Expression Evaluation
Last Updated: 19 June 2023
The stack organization is very effective in evaluating arithmetic expressions. Expressions are usually represented in what is known as Infix
...read more
Inorder Traversal
Preorder Traversal
PostOrder Traversal
Stack
Data Structures-Stack
expression-evaluation
Parentheses-Problems
DSA
Data Structures | Stack | Question 8
Last Updated: 28 June 2021
A single array A[1..MAXSIZE] is used to implement two stacks. The two stacks grow from opposite ends of the array. Variables top1 and top2 (
...read more
Data Structures
Data Structures
Data Structures-Stack
DSA
Data Structures | Stack | Question 7
Last Updated: 28 June 2021
Let S be a stack of size n = 1. Starting with the empty stack, suppose we push the first n natural numbers in sequence, and then perform n p
...read more
Data Structures
Data Structures
Data Structures-Stack
DSA
Data Structures | Stack | Question 6
Last Updated: 28 June 2021
The following postfix expression with single digit operands is evaluated using a stack: 8 2 3 ^ / 2 3 * + 5 1 * - Note that ^ i
...read more
Data Structures
Data Structures
Data Structures-Stack
DSA
Data Structures | Stack | Question 5
Last Updated: 09 February 2013
Following is an incorrect pseudocode for the algorithm which is supposed to determine whether a sequence of parentheses is balan
...read more
Data Structures
Data Structures
Data Structures-Stack
DSA
Data Structures | Stack | Question 4
Last Updated: 09 February 2013
Consider the following pseudocode that uses a stack[tabby title="C"][sourcecode language="c"] declare a stack of characters
...read more
Data Structures
Data Structures
Data Structures-Stack
DSA
Data Structures | Stack | Question 3
Last Updated: 05 February 2013
Which of the following is true about linked list implementation of stack?(A) In push operation, if new nodes are inserted at the beginning o
...read more
Data Structures
Data Structures
Data Structures-Stack
DSA
Data Structures | Stack | Question 2
Last Updated: 08 January 2013
Which one of the following is an application of Stack Data Structure?(A) Managing function calls(B) The stock span problem(C) Arithmetic exp
...read more
Data Structures
Data Structures
Data Structures-Stack
DSA
Data Structures | Stack | Question 1
Last Updated: 08 January 2013
Following is C like pseudo code of a function that takes a number as an argument, and uses a stack S to do processing.[sourcecode language="
...read more
Data Structures
Data Structures
Data Structures-Stack
DSA
1
2
>>
Last
1
2
>>
Last
1
2
>>
Last
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our
Cookie Policy
&
Privacy Policy
Got It !