Skip to content

Category Archives: Stack

What is an Array of Objects? An array of objects is a data structure that stores a collection of objects of the same type. The… Read More
Stack size is a crucial aspect of C/C++ programming that determines the amount of memory available for storing function call frames and local variables. In… Read More
Given a string S consisting of lowercase alphabets, the task is to find the lexicographically smallest string that can be obtained by removing duplicates from… Read More
Stack overflow is a common problem in computer programming and can lead to unpredictable behavior and security vulnerabilities in C / C++ programs. It is… Read More
Given a string, reverse it using stack. For example “GeeksQuiz” should be converted to “ziuQskeeG”. Following is simple algorithm to reverse a string using stack. … Read More
What is Parallel Stack? A parallel stack is a type of data structure that allows multiple threads to access and manipulate the stack concurrently.  In… Read More
Given a stack, the task is to reverse the stack using the queue data structure. Examples: Input: Stack: (Top to Bottom) [10 -> 20 ->… Read More
You have a browser of one tab where you start on the homepage and you can visit another URL, get back in the history number… Read More
What is Stack Unwinding? Stack unwinding is the process of executing destructors for all local objects when an exception propagates out of a function. It… Read More
Stack is a linear data structure that works in a model of LIFO ( last in first out ). In which, the element pushed at… Read More
Given an integer N, the task is to print all numbers up to N in Lexicographical order. Examples: Input: N = 20Output: 1 10 11… Read More
Stack is basically a restrictive array that uses LIFO Property. We use pop() and push() Operations to delete and insert elements into the stack respectively.… Read More
Stacks are a type of data structure that follows the LIFO(Last In First Out) working principle, where a new element is added at one end… Read More
Java Vector: Vectors are analogous to arrays in a way that both of them are used to store data, but unlike an array, vectors are… Read More
Given a string S consisting of only lowercase characters, the task is to find the lexicographically smallest string after removing exactly K characters from the… Read More

Start Your Coding Journey Now!