Top "Stack" questions

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

Time complexity of a Stack ADT implemented using a Linked List

What is the time complexity of the put(x) and get() functions for a Stack abstract data type that is …

pointers data-structures stack time-complexity abstract-data-type
The stack pointer for stack 'CSTACK' is outside the stack range

I am trying to execute some simple code on the IAR embedded workbench using a simulator. I've complied the code …

c debugging ide stack iar
How to read frames from a core dump (without GDB)?

I would like to access the frames stored in a core dump of a program that doesn't has debug symbols (…

gdb stack frames coredump
free() on stack memory

I'm supporting some c code on Solaris, and I've seen something weird at least I think it is: char new_…

c memory-management garbage-collection stack free
Postfix stack calculator

I've created a stack calculator for my Java class to solve equations such as 2 + ( 2 * ( 10 – 4 ) / ( ( 4 * 2 / ( 3 + 4) ) + 2 ) – 9 ) 2 + { 2 * ( 10 – 4 ) / [ { 4 * 2 / ( 3 + 4) } + 2 ] – 9 } We are suppose to implement { } [ ] into …

java stack calculator postfix-notation
How does a stackless language work?

I've heard of stackless languages. However I don't have any idea how such a language would be implemented. Can someone …

stack language-design stackless
Is there a bug in java.util.Stack's Iterator?

Today I was trying to push in java.util.Stack class and then use the Iterator to iterate (without using …

java algorithm data-structures stack
Generate permutation using a single stack

Can anyone please explain algorithm to generate the permutations possible when using only a single stack and push and pop …

algorithm stack permutation catalan
How to evaluate Reverse polish notation using stacks

Can this postfix expression can be evaluated? 6 2 3 + - 3 8 2 / + * 2 5 3 +

algorithm stack postfix-notation rpn
How to detect offending code for stack smashing error

In a complex program, I am encountering a stack smashing error, pasted below. I'm having trouble to find out where …

c debugging gdb stack watchpoint