Top 50 Problems on Stack Data Structure asked in SDE Interviews Last Updated : 29 Mar, 2025 Comments Improve Suggest changes Like Article Like Report 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, represented as the top of the stack. To learn about Stack Data Structure in detail, please refer to the Tutorial on Stack Data Structure.Easy ProblemsParenthesis CheckerReverse a String using StackPostfix to Prefix Two stacks in an arrayDelete Middle element from stackReverse individual wordsMedium ProblemsQueue using StacksStack using QueuesStack using single queueEvaluate Postfix ExpressionNext Greater ElementNearest Smaller ElementNext Smaller of next GreaterSort a stack using a temporary stackStock Span ProblemReverse a Stack using recursionInfix to Postfix Delete consecutive same wordsLargest subsequence of distinct charactersCheck if a Binary Tree is BSTMinimize length by removing subsequencesSpecial StackClone a stack without extra space | Set 2Count of Subarrays whose first element is the minimumLength of the longest valid substringIndex of closing bracketNext Greater Frequency ElementMax Diff between nearest smallers Max product of indexes of next greatersHard ProblemsValid stack permutationStack with getMin() in O(1) time and spaceinsert(), delete(), getRandom() and getMin() in O(1) timeEquivalent expressions k stacks in a single arrayLargest rectangular area in a histogram The Celebrity ProblemCustom Browser HistoryMaximum size rectangle | Set 2Sort a stack using another stackStack with findMiddle() and deleteMiddle() operations in O(1) timeMaximum visible peopleCount distinct Max Differences in SubarraysLargest Rectangular Area in a HistogramLongest Correct Bracket Subsequence Set Maximum of minimum for every window sizePrint ancestors of a binary tree nodeRelated Articles:DSA TutorialTop 50 Dynamic Programming Coding Problems for InterviewsTop 50 Problems on Linked List for InterviewsTop 50 Problems on Queue for Interviews Comment More infoAdvertise with us Next Article Top 50 Problems on Queue Data Structure asked in SDE Interviews R RishabhPrabhu Follow Improve Article Tags : Stack DSA Interview-Questions GFG Sheets top-dsa-problems DSA Sheet +2 More Practice Tags : Stack Similar Reads SDE SHEET - A Complete Guide for SDE Preparation Here is a curated list of the most popular questions among important topics, such as Programming Languages, Data Structure and Algorithms (DSA), CS Subjects, Aptitude, etc, asked in the Software Development Engineer Interviews. This sheet contains a wide range of coding questions from different Data 8 min read DSA Tutorial - Learn Data Structures and Algorithms DSA (Data Structures and Algorithms) is the study of organizing data efficiently using data structures like arrays, stacks, and trees, paired with step-by-step procedures (or algorithms) to solve problems effectively. Data structures manage how data is stored and accessed, while algorithms focus on 7 min read Top 50 Array Coding Problems for Interviews Array is one of the most widely used data structure and is frequently asked in coding interviews to the problem solving skills. The following list of 50 array coding problems covers a range of difficulty levels, from easy to hard, to help candidates prepare for interviews.Easy ProblemsSecond Largest 2 min read Top 50 Problems on Matrix/Grid Data Structure asked in SDE Interviews A Matrix/Grid is a two-dimensional array that consists of rows and columns. It is an arrangement of elements in horizontal or vertical lines of entries. Here is the list of the top 50 frequently asked interview questions on Matrix/Grid in the SDE Interviews. Problems in this Article are divided into 2 min read Top 50 String Coding Problems for Interviews String-related problems often assess a candidate's understanding of concepts like pattern matching, manipulation, and efficient algorithm design. Here is the collection of the Top 50 list of frequently asked interview questions on Strings. Problems in this Article are divided into three Levels so th 2 min read Top 50 Problems on Stack Data Structure asked in SDE Interviews 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, represented as the top of the stack. To learn about Stack Data Structure in detail, please refer to the Tutorial on Stack Data Structure.Easy ProblemsParenthesis 2 min read Top 50 Problems on Queue Data Structure asked in SDE Interviews A Queue is defined as a linear data structure that is open at both ends and the operations are performed in First In First Out (FIFO) order. We define a queue to be a list in which all additions to the list are made at one end, and all deletions from the list are made at the other end. The element w 3 min read Top 50 Problems on Recursion Algorithm Recursion is one of the most essential algorithms that uses the concept of code reusability and repeated usage of the same piece of code. In this post, we have curated an extensive list of interview questions asked around the Recursion Algorithm. The point that makes Recursion one of the most used a 2 min read Top 20 Backtracking Algorithm Interview Questions Backtracking is a powerful algorithmic technique used to solve problems by exploring all possible solutions in a systematic and recursive manner. It is particularly useful for problems that require searching through a vast solution space, such as combinatorial problems, constraint satisfaction probl 1 min read Top Sorting Interview Questions and Problems Here is the collection of the Top 50 list of frequently asked interview questions on Sorting. Problems in this article are divided into three Levels so that readers can practice according to the difficulty level step by step. Easy Problems Duplicates within k distanceMaximum Perimeter TriangleMaximi 5 min read Like