AniketTheProgrammer
Home
(current)
Courses
Projects
YT Projects
Coding Questions
Notification
Contact Us
Log In
All Topics
C Language
C++ Language
Greedy Algorithm
Hashing
Java Language
Linked List
Python
Queue
Stack
String
Sorting
Searching
Recursion
Backtracking
Dynamic Programming
Graph Theory
Bit Manipulation
Mathematics
Sliding Window Technique
Divide And Conquer
Matrix Manipulation
Two Pointers
Binary Tree
Topic: Stack-question / Level: Advanced
401. Implement a function to find the smallest element in a stack in O(1) time.
402. Write a function to reverse a stack using recursion.
403. Implement a stack that supports push, pop, top, and retrieving the minimum element in constant time.
404. Write a function to evaluate a mathematical expression in postfix notation with error handling.
405. Implement a function to sort a stack using another stack.
406. Write a function to check if a stack is a permutation of another stack.
407. Implement a function to find the longest valid parentheses substring in a string using a stack.
408. Write a function to implement a priority stack that retrieves the highest priority item.
409. Implement a function to calculate the maximum depth of nested parentheses.
410. Write a function to implement a two-stack queue.
411. Implement a function to check if a stack can be sorted with a limited number of auxiliary stacks.
412. Write a function to create a stack that keeps track of the maximum element.
413. Implement a function to find the longest common subsequence between two strings using a stack.
414. Write a function to implement a min-max stack.
415. Implement a function to find all valid combinations of parentheses using a stack.
416. Write a function to detect a cycle in a stack representation of a linked list.
417. Implement a function to evaluate infix expressions using the Shunting Yard algorithm.
418. Write a function to check if a stack is a palindrome.
419. Implement a function to merge K sorted stacks into a single sorted stack.
420. Write a function to find the shortest valid parentheses substring.
421. Implement a function to implement a stack that supports duplicate elements while maintaining order.
422. Write a function to find the longest substring without repeating characters using a stack.
423. Implement a function to create a stack that supports range queries.
424. Write a function to find the number of ways to arrange parentheses.
425. Implement a function to find the maximum area of a rectangle in a histogram using a stack.
426. Write a function to evaluate a complex expression with nested operations.
427. Implement a function to check if a string is a valid serialization of a binary tree using a stack.
428. Write a function to calculate the longest increasing subsequence in a stack.
429. Implement a function to generate all possible permutations of a stack using backtracking.
430. Write a function to find the maximum difference between the top two elements of a stack.
Previous
1
2
3
4
5
6
7
Next
More Levels
Beginner
Intermediate
Most Visited
Implement a function to find the minimum height of a binary tree using a stack.
Write a function to find the largest element in a stack.
Write a function to find the longest sequence of consecutive numbers in a stack.
Implement a function to find the longest balanced substring of parentheses using a stack.
Implement a function to sort a stack using recursion.
Write a function to reverse a stack using recursion.
Implement a function to check if a stack can be sorted with a single auxiliary stack.
Implement a function to insert an element at the bottom of the stack.
Implement a function to calculate the Fibonacci series using a stack.
Implement a function to interleave two stacks.
Write a function to remove the last element from a stack.
Write a function to find pairs of elements that sum to a specific value in a stack.
Write a function to evaluate a mathematical expression in postfix notation with error handling.
Implement a function to find the middle element of a stack in O(1) time.
Implement a stack using an array.