Stacks & Queues Problems

1

Implement two stacks in an Array

2

Evaluation of Postfix Expression

3

Implement Stack using Queues

4

Queue Reversal

5

Implement Stack Queue using Deque

6

Reverse first k elements of queue

7

Design Stack with Middle Operation

8

Infix to Postfix

9

Design and Implement Special stack

10

Longest Valid String

11

Find if an expression has duplicate parenthesis or not

12

Stack permutations check if an array is stack permutation of other

13

Count natural numbers whose permutation greater number

14

Sort a stack using Recursion

15

Queue based approach for first non repeating character in a stream

16

The Celebrity Problem

17

Next larger Element

18

Distance of nearest cell

19

Rotten-oranges

20

Next smaller element

21

Circular-tour

22

Efficiently implement k-stacks single array

23

The celebrity problem

24

Iterative tower of hanoi

25

Find the maximum of minimums for every window size in a given array

26

lru cache implementation

27

Find a tour that visits all stations