

Consider the simple example of plates stacked over one another in a canteen. There are many real-life examples of a stack. Maximum and minimum of an array using minimum number of comparisons.Given an array A and a number x, check for pair in A with sum as x.Write a program to reverse an array or string.Stack | Set 4 (Evaluation of Postfix Expression).Maximum product of indexes of next greater on left and right.Next greater element in same order as input.Sliding Window Maximum (Maximum of all subarrays of size k) using stack in O(n) time.Sliding Window Maximum (Maximum of all subarrays of size k).Given an array arr, find the maximum j – i such that arr > arr.Maximum difference between two elements such that larger element appears after the smaller number.Maximum profit by buying and selling a share at most k times.Maximum profit by buying and selling a share at most twice.Count possible ways to construct buildings.Compute sum of digits in all numbers from 1 to n.Program for Sum of the digits of a given number.Finding sum of digits of a number until sum becomes single digit.

Stack Data Structure (Introduction and Program).ISRO CS Syllabus for Scientist/Engineer Exam.ISRO CS Original Papers and Official Keys.GATE CS Original Papers and Official Keys.
