Top "Stack" questions

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

How can I disable 'go back' to some activity?

I don't want the user to be able to go back to the splashscreen of my app. One solution seems …

android android-activity stack
Postfix Calculator Java

Ok so I have to read in a postfix expression from a file. The postfix expression must have spaces to …

java calculator postfix-notation stack
How to get a stack trace object in Ruby?

I need to get a stack trace object in Ruby; not to print it, just to get it to do …

ruby stack stack-trace
Remove redundant parentheses from an arithmetic expression

This is an interview question, for which I did not find any satisfactory answers on stackoverflow or outside. Problem statement: …

algorithm data-structures stack permutation
How to traverse stack in C++?

Is it possible to traverse std::stack in C++? Traversing using following method is not applicable. Because std::stack has …

c++ stack traversal
Why is stack size in C# exactly 1 MB?

Today's PCs have a large amount of physical RAM but still, the stack size of C# is only 1 MB for 32…

c# stack clr stack-size
Why does the stack address grow towards decreasing memory addresses?

I read in text books that the stack grows by decreasing memory address; that is, from higher address to lower …

memory-management stack virtual-memory callstack
Do Java primitives go on the Stack or the Heap?

I just know that the non-primitives (the objects) go on the heap, and methods go on the stack, but what …

java stack heap
How to Control Android back stack

Lets say I have A->B->C->D->E In android back stack. I want to …

android android-activity stack back activity-stack
C++ Error message redefinition of functions

I am using two stacks to implement a queue class. My header file looks like: #ifndef _MyQueue_h #define _MyQueue_…

c++ class stack queue redefinition