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
91. Write a function to remove the last element from a stack.
92. Implement a function to display the size of the stack before and after push/pop operations.
93. Write a function to clear a stack and check if it's empty afterward.
94. Implement a function to print all elements of a stack in one line.
95. Write a function to create a stack from a string.
96. Implement a function to find duplicates in a stack.
97. Write a function to find common elements in two stacks.
98. Implement a function to check if the stack is a subset of another set.
99. Write a function to implement a stack with a counter for push/pop operations.
100. Implement a function to get the top N elements from the stack.
101. Write a function to find the Nth largest element in a stack.
102. Implement a function to shuffle the elements of a stack.
103. Write a function to display the stack's contents as a list.
104. Implement a function to create a stack of floats and perform operations.
105. Write a function to perform arithmetic operations on elements of a stack.
106. Implement a function to find elements that appear more than once in a stack.
107. Write a function to display the first and last elements of the stack.
108. Implement a function to swap the top three elements of a stack.
109. Write a function to check if all elements in the stack are unique.
110. Implement a function to get the index of a specific element in the stack.
111. Write a function to duplicate the top element of the stack.
112. Implement a function to check if the stack is full before pushing.
113. Write a function to get the average of the stack elements.
114. Implement a function to perform binary search on a stack.
115. Write a function to check if a stack contains a specific sequence.
116. Implement a function to push elements to the stack from a list.
117. Write a function to create a stack of strings and perform operations.
118. Implement a function to get the Nth element from the bottom of the stack.
119. Write a function to display elements of the stack in reverse order.
120. Implement a function to implement a stack that tracks push/pop 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.