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: Beginner
181. Write a function to create a stack of integers from user input.
182. Implement a function to merge three stacks while preserving their order.
183. Write a function to generate a stack of prime numbers.
184. Implement a function to find the largest element that appears more than once in a stack.
185. Write a function to calculate the average of the top N elements in a stack.
186. Implement a function to perform basic arithmetic operations using a stack.
187. Write a function to find the longest increasing subsequence in a stack.
188. Implement a function to find the longest decreasing subsequence in a stack.
189. Write a function to count how many elements in a stack are greater than a specific value.
190. Implement a function to create a stack of random integers.
191. Write a function to push and pop elements based on user input.
192. Implement a function to find the minimum element in a stack that is not a duplicate.
193. Write a function to find the maximum element in a stack that is not a duplicate.
194. Implement a function to swap the bottom two elements of a stack.
195. Write a function to find pairs of elements in a stack that have a difference of a specific value.
196. Implement a function to remove all duplicate elements from a stack.
197. Write a function to check if the elements of a stack are in ascending order.
198. Implement a function to check if the elements of a stack are in descending order.
199. Write a function to simulate a stack-based memory management system.
200. Implement a function to create a stack of mixed data types and perform operations.
Previous
1
2
3
4
5
6
7
Next
More Levels
Intermediate
Advanced
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.