EdocGram
Home
(current)
Topics
EdocAI
Code Editor
HTML
Javascript
PHP
Python
Python AI Code Editor
More
Contact
About
Privacy Policy
Terms and Conditions
Log In
Topic
View
More
Topic
Hashing
Linked List
Queue
Stack
Backtracking
Dynamic Programming
Graph Theory
Bit Manipulation
Mathematics
Sliding Window Technique
Divide And Conquer
Matrix Manipulation
Two Pointers
Tree
Topic: stack-problem / Level: beginner
51. Write a function to reverse an array using a stack.
52. Implement a stack that keeps track of the sum of its elements at each push operation.
53. Create a function to push all prime numbers from an array into a stack.
54. Write a program to remove all elements greater than a given value from a stack.
55. Implement a stack that supports undo and redo operations.
56. Write a function to find the maximum depth of a stack.
57. Create a function to push all elements smaller than a specified value into a stack.
58. Write a program to reverse a queue using a stack.
59. Implement a stack that supports push, pop, and getting the average of elements in constant time.
60. Write a function to delete all negative numbers from a stack.
61. Create a function to push elements from two arrays into two separate stacks.
62. Write a program to push elements into a stack and pop elements based on priority (min/max).
63. Implement a stack that supports push, pop, and getting the second minimum element.
64. Write a program to check if two stacks are equal.
65. Create a function to push elements from a matrix into a stack, row by row.
66. Write a function to count the occurrences of a given element in a stack.
67. Implement a function to push elements from an array into a stack in reverse order.
68. Write a program to push characters from a string into a stack and print them in reverse order.
69. Create a stack that allows pushing elements only if they are even.
70. Write a program to push elements into a stack and pop elements only if they are greater than a specified threshold.
71. Implement a function to pop elements from a stack until a prime number is encountered.
72. Write a function to reverse a list of integers using a stack.
73. Create a function to remove all duplicate elements from a stack.
74. Write a program to push the elements of a linked list into a stack and print them in reverse order.
75. Implement a function to rotate a stack k times to the left.
76. Write a program to push elements from a queue into a stack and print the stack.
77. Create a function to push numbers into a stack and remove numbers greater than a specific value.
78. Write a program to push the digits of a number into a stack and reverse the number using the stack.
79. Implement a function to push elements from one stack into another stack in reverse order.
80. Write a function to count the total number of elements in two stacks.
81. Create a program to push all elements from an array into a stack and find the sum of the elements.
82. Write a program to check if a stack contains any palindrome elements.
83. Implement a function to push elements from two stacks into a third stack in sorted order.
84. Write a function to check if the elements of two stacks are the same, regardless of order.
85. Create a function to find the maximum element in two stacks combined.
86. Write a program to push elements into a stack and remove elements smaller than a specified value.
87. Implement a function to delete the top k elements from a stack.
88. Write a program to print the elements of a stack without modifying the stack.
89. Create a function to push elements into a stack and pop elements only if they are odd.
90. Write a program to push the elements of a trees preorder traversal into a stack.
91. Implement a function to convert a postfix expression to an infix expression using a stack.
92. Write a program to push all digits of a number into a stack and print them in reverse order.
93. Create a function to push the elements of a graphs DFS traversal into a stack.
94. Write a program to push the elements of an array into a stack and print the minimum and maximum values.
95. Implement a function to reverse the order of words in a string using a stack.
96. Write a program to push all vowels from a string into a stack.
97. Create a function to pop elements from a stack and return the smallest element.
98. Write a program to check if the elements of a stack form an arithmetic sequence.
99. Implement a function to push characters into a stack and pop them in reverse order.
100. Write a program to push all elements from two arrays into a stack and remove duplicate elements.
Previous
1
2
3
...
20
Next
More Levels
Intermediate
Advanced
Aniket The Programmer
This website is managed by aniket the programmer :)
Website
Instagram