Top "Stack" questions

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

Stack overflows from deep recursion in Java?

After some experience with functional languages, I'm starting to use recursion more in Java - But the language seems to …

java functional-programming stack overflow
How to implement 3 stacks with one array?

Sometimes, I come across the following interview question: How to implement 3 stacks with one array ? Of course, any static allocation …

algorithm data-structures stack
How does a NOP sled work?

I can't find a good source that answers this question. I know that a nop sled is a technique used …

c assembly stack buffer-overflow nop
How to check if a Stack<T> is empty

Is there some other way, except Stack<T>.Count() == 0, to check if a Stack<T> is …

c# stack is-empty
Is accessing data in the heap faster than from the stack?

I know this sounds like a general question and I've seen many similar questions (both here and on the web) …

c++ c performance stack heap
What's the Big-O of a stack, queue, set, and deque?

What is the Big-O efficiency of a stack, queue, set, and deque as it pertains to insertion, search, indexing, space, …

stack set queue big-o deque
Setting stacksize in a python script

I am converting a csh script to a python script. The script calls a memory-intensive executable which requires a very …

python stack csh
How to group android notifications like whatsapp?

I don´t know how to group two or more notifications into only one and show a message like "You …

android notifications stack google-cloud-messaging grouping
How to check if a String is balanced?

I want to test if an input String is balanced. It would be balanced if there is a matching opening …

java string stack balance
What is the direction of stack growth in most modern systems?

I am preparing some training materials in C and I want my examples to fit the typical stack model. What …

assembly stack callstack abi stack-frame