Top "Stack" questions

A stack is a last in, first out (LIFO) abstract data type and data structure.

Implement Stack using Two Queues

A similar question was asked earlier there, but the question here is the reverse of it, using two queues as …

algorithm data-structures stack
How to increase the Java stack size?

I asked this question to get to know how to increase the runtime call stack size in the JVM. I've …

java stack stack-overflow
Parenthesis/Brackets Matching using Stack algorithm

For example if the parenthesis/brackets is matching in the following: ({}) (()){}() () and so on but if the parenthesis/brackets is …

java stack parentheses
What are SP (stack) and LR in ARM?

I am reading definitions over and over again and I still not getting what are SP and LR in ARM? …

assembly stack arm
C/C++ maximum stack size of program

I want to do DFS on a 100 X 100 array. (Say elements of array represents graph nodes) So assuming worst case, …

c++ c stack
Stack, Static, and Heap in C++

I've searched, but I've not understood very well these three concepts. When do I have to use dynamic allocation (in …

c++ static garbage-collection stack heap
Why is the use of alloca() not considered good practice?

alloca() allocates memory on the stack rather than on the heap, as in the case of malloc(). So, when I …

c stack malloc allocation alloca
Java balanced expressions check {[()]}

I am trying to create a program that takes a string as an argument into its constructor. I need a …

java stack pseudocode
What do Push and Pop mean for Stacks?

long story short my lecturer is crap, and was showing us infix to prefix stacks via an overhead projector and …

stack terminology infix-notation
How to clone object in C++ ? Or Is there another solution?

I wrote a Stack and Queue implementation (Linked List based). There is one stack (bigStack). For example, I separate bigStack (…

c++ data-structures stack queue