Top "Stack" questions

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

how to unstack (or pivot?) in pandas

I have a dataframe that looks like the following: import pandas as pd datelisttemp = pd.date_range('1/1/2014', periods=3, …

python pandas stack pivot
C# Recursion Depth - How Deep can you go

Is there any control how much you can Recursively call something? From a basic test program I get a recursion …

c# .net recursion stack
Removing range (tail) from a List

Is there an efficient method to remove a range - say the tail - of X elements from a List, …

java list collections stack
How to detect possible / potential stack overflow problems in a c / c++ program?

Is there a standard way to see how much stack space your app has and what the highest watermark for …

c++ c memory stack overflow
View activity stack in Android

Is it possible to view the activity stack in Android for debugging purposes?

android debugging android-activity stack
Codility : Brackets Determine whether a given string of parentheses is properly nested

Problem description from codility : A string S consisting of N characters is considered to be properly nested if any of …

java stack brackets
How to get the caller class name inside a function of another class in python?

My objective is to stimulate a sequence diagram of an application for this I need the information about a caller …

python stack runtime sequence-diagram
Does the iOS SDK provide queues and stacks?

I'm writing an iPhone app, and I'm surprised that there seem to be no NSQueue or NSStack classes in Apple's …

stack queue ios
How to return to the latest launched activity when re-launching application after pressing HOME?

Familiar scenario: I have a Main activity that launches a Game activity when a button is pressed. If the user …

android android-activity stack task
Declare variables at top of function or in separate scopes?

Which is preferred, method 1 or method 2? Method 1: LRESULT CALLBACK wpMainWindow(HWND hwnd, UINT msg, WPARAM wparam, LPARAM lparam) { switch (msg) { …

c++ c function stack