16 views
22 Dec 2025
Explain what a stack data structure is and how it follows the LIFO principle....
16 views
22 Dec 2025
Explain basic stack operations such as push, pop, peek, and isEmpty....
11 views
22 Dec 2025
Implement a stack using an array and explain how overflow and underflow occur....
16 views
22 Dec 2025
Implement a stack using linked list and explain dynamic memory usage....
11 views
22 Dec 2025
Check whether an expression has balanced parentheses using stack....
14 views
22 Dec 2025
Reverse a string using stack and explain the process step by step....
12 views
22 Dec 2025
Convert an infix expression to postfix using stack....
13 views
22 Dec 2025
Evaluate a postfix expression using stack....
10 views
22 Dec 2025
Find the next greater element for each element in an array using stack....
13 views
22 Dec 2025
Find the previous smaller element for each element using stack....
13 views
22 Dec 2025
Solve the stock span problem using stack and explain the logic....
14 views
22 Dec 2025
Find the largest rectangular area in a histogram using stack....
14 views
22 Dec 2025
Implement a queue using stack and explain the approach....
14 views
22 Dec 2025
Implement a stack using queue and explain the approach....
13 views
22 Dec 2025
Check whether a string is palindrome using stack....
13 views
22 Dec 2025
Sort a stack using recursion or another stack....
15 views
22 Dec 2025
Design a stack that supports getMin operation in O(1) time....
10 views
22 Dec 2025
Remove adjacent duplicate characters from a string using stack....
14 views
22 Dec 2025
Decode an encoded string using stack....
15 views
22 Dec 2025
Find the celebrity in a party using stack approach....