archgaelix
Uses
Archive
st-q
Balanced parenthesis
#string
#st-q
Implement stack from scratch
#st-q
Implement queue from scratch
#st-q
Implement 2 stack in an array
#st-q
Find the middle element of a stack
#st-q
Implement N stacks in an array
#st-q
Reverse a string using stack
#st-q
Design a stack that supports getmin() in O(1) time and O(1) extra space
#st-q
Find the next greater element
#st-q
Celebrity
#st-q
Arithmetic expression evaluation
#st-q
Evaluation of postfix expression
#st-q
Implement a method to insert an element at its bottom without using any other data structure
#st-q
Reverse a stack using recursion
#st-q
Sort a stack using recursion
#st-q
Merge overlapping intervals
#st-q
Largest rectangular area in histogram
#st-q
Length of the longest valid substring
#st-q
Expression contains redundant bracket
#st-q
Implement stack using queue
#st-q
Implement stack using deque
#st-q
Stack permutations
#st-q
Implement queue using stack
#st-q
Implement N queue in an array
#st-q
Implement a circular queue
#st-q
LRU cache implementation
#st-q
Reverse a queue using recursion
#st-q
Reverse the first K elements of a queue
#st-q
Interleave the first half of the queue with second half
#st-q
Find the first circular tour that visits all petrol pumps
#st-q
Minimum time required to rot all oranges
#st-q
Distance of nearest cell having 1 in a binary matrix
#st-q
First negative integer in every window of size K
#st-q
Check if all levels of two trees are anagrams
#st-q
Sum of minimum and maximum elements of all subarrays of size K
#st-q
Minimum sum of squares of character counts in a given string after removing K characters
#st-q
Next smaller element
#st-q