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
901. Write a program to push elements into a stack and remove every number that is divisible by both 5 and 12.
902. Create a function to push numbers into a stack and count how many of them are perfect cubes.
903. Write a program to reverse every second element in a stack without using another stack.
904. Implement a function to push the elements of a list into a stack and remove elements greater than 50.
905. Write a program to push numbers into a stack and remove all multiples of both 3 and 7.
906. Create a function to reverse every second group of k elements in a stack using recursion.
907. Write a program to push elements into a stack and pop elements until their product exceeds 250.
908. Implement a function to push numbers into a stack and count how many of them are even.
909. Write a program to push elements into a stack and reverse the first half of the stack.
910. Create a function to push the digits of a number into a stack and reverse them if the number is a palindrome.
911. Write a program to push elements into a stack and remove the smallest number in the stack.
912. Implement a function to reverse every fourth element in a stack using recursion.
913. Write a program to push elements into a stack and pop every prime number greater than 40.
914. Create a function to push elements from two stacks into a third stack in reverse order.
915. Write a program to reverse the digits of all numbers in a stack that are divisible by 8.
916. Implement a function to push the elements of a matrix into a stack row by row and reverse each row.
917. Write a program to push numbers into a stack and remove every second number greater than 20.
918. Create a function to reverse the order of the elements in a stack without using recursion.
919. Write a program to push elements into a stack and pop the first element that is divisible by both 4 and 6.
920. Implement a function to push elements into a stack and count how many of them are prime-indexed.
921. Write a program to reverse every second pair of elements in a stack using recursion.
922. Create a function to push the elements of a binary search trees preorder traversal into a stack.
923. Write a program to push elements into a stack and remove every element that is greater than the top element.
924. Implement a function to push numbers into a stack and remove all multiples of 17.
925. Write a program to push the elements of a queue into a stack and reverse their order.
926. Create a function to push the elements of a matrix column by column into a stack and reverse them.
927. Write a program to reverse the digits of all prime numbers in a stack using recursion.
928. Implement a function to push elements into a stack and count how many of them are perfect squares.
929. Write a program to push numbers into a stack and remove every number greater than 35.
930. Create a function to push the digits of a number into a stack and reverse them if the number is divisible by 10.
931. Write a program to push elements into a stack and pop every element smaller than the bottom element.
932. Implement a function to reverse the top half of a stack using recursion.
933. Write a program to push elements from two arrays into a stack, alternating between positive and negative numbers.
934. Create a function to push numbers into a stack and count how many of them are divisible by 5 and 9.
935. Write a program to reverse every other element in a stack using recursion.
936. Implement a function to push the elements of a matrix into a stack diagonally and reverse them.
937. Write a program to push elements into a stack and remove every prime-indexed element.
938. Create a function to push the elements of a binary trees postorder traversal into a stack.
939. Write a program to push numbers into a stack and remove all multiples of both 3 and 6.
940. Implement a function to reverse every second group of k elements in a stack using a second stack.
941. Write a program to push elements into a stack and count how many of them are divisible by 2 and 8.
942. Create a function to reverse the digits of all even numbers in a stack using recursion.
943. Write a program to push numbers into a stack and remove all multiples of 11.
944. Implement a function to push elements into a stack and pop the first element that is greater than the top element.
945. Write a program to reverse the order of elements in every second group of 4 elements in a stack.
946. Create a function to push the digits of a number into a stack and reverse them if the number is even.
947. Write a program to push elements into a stack and remove the top k elements.
948. Implement a function to push elements from two stacks into a third stack and reverse them.
949. Write a program to push the elements of a matrix into a stack row by row and reverse the matrix.
950. Create a function to push elements into a stack and count how many of them are greater than 20.
Previous
1
...
18
19
20
Next
More Levels
Intermediate
Advanced
Aniket The Programmer
This website is managed by aniket the programmer :)
Website
Instagram