Balanced parenthesis

Read more →

Implement stack from scratch

Read more →

Implement queue from scratch

Read more →

Implement 2 stack in an array

Read more →

Find the middle element of a stack

Read more →

Implement N stacks in an array

Read more →

Reverse a string using stack

Read more →

Design a stack that supports getmin() in O(1) time and O(1) extra space

Read more →

Find the next greater element

Read more →

Celebrity

Read more →

Arithmetic expression evaluation

Read more →

Evaluation of postfix expression

Read more →

Implement a method to insert an element at its bottom without using any other data structure

Read more →

Reverse a stack using recursion

Read more →

Sort a stack using recursion

Read more →

Merge overlapping intervals

Read more →

Largest rectangular area in histogram

Read more →

Length of the longest valid substring

Read more →

Expression contains redundant bracket

Read more →

Implement stack using queue

Read more →

Implement stack using deque

Read more →

Stack permutations

Read more →

Implement queue using stack

Read more →

Implement N queue in an array

Read more →

Implement a circular queue

Read more →

LRU cache implementation

Read more →

Reverse a queue using recursion

Read more →

Reverse the first K elements of a queue

Read more →

Interleave the first half of the queue with second half

Read more →

Find the first circular tour that visits all petrol pumps

Read more →

Minimum time required to rot all oranges

Read more →

Distance of nearest cell having 1 in a binary matrix

Read more →

First negative integer in every window of size K

Read more →

Check if all levels of two trees are anagrams

Read more →

Sum of minimum and maximum elements of all subarrays of size K

Read more →

Minimum sum of squares of character counts in a given string after removing K characters

Read more →

Next smaller element

Read more →