Problem Statement: Given a Stack having some elements stored in it. Can you implement aQueue using the given Stack? Queue:
Continue readingCategory: Stack
Next Greater Element Using Stack
Problem Statement: Given a circular integer array A, return the next greater element for every element in A. The next
Continue readingImplement Min Stack : O(2N) and O(N) Space Complexity
Problem Statement: Implement Min Stack | O(2N) and O(N) Space Complexity. Design a stack that supports push, pop, top, and
Continue readingImplement Stack using single Queue
Problem Statement: Implement a Stack using a single Queue. Note: Stack is a data structure that follows the Last In
Continue readingImplement Stack using Array
Problem statement: Implement a stack using an array. Note: Stack is a data structure that follows the Last In First
Continue readingCheck for Balanced Parentheses
Problem Statement: Check Balanced Parentheses. Given string str containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[‘ and ‘]’, check
Continue reading