stack Questions

3

I have a long-running process called an Updater, that has updates (to an ETL system) submitted to it. The updates have resource requirements that are managed by adding a context manager to the Upda...
Protocol asked 3/6, 2016 at 5:56

12

Solved

I'm having several activities in my application. and flow is very complicated. When I click the Logout application navigates to login Screen and from there user can exit by cancel button (calling s...
Forename asked 16/8, 2011 at 8:16

6

Solved

I want to know if there is a way to solve infix expressions in a single pass using 2 stacks? The stacks can be one for operator and the other for operands... The standard way to solve by shunt-yar...
Imprescriptible asked 16/11, 2012 at 17:23

34

Solved

Problem description from codility : A string S consisting of N characters is considered to be properly nested if any of the following conditions is true: S is empty; S has the form "(U)" or "[U]"...
Downstream asked 9/3, 2015 at 20:41

33

Solved

What is the best way to implement a Stack and a Queue in JavaScript? I'm looking to do the shunting-yard algorithm and I'm going to need these data-structures.
Sestet asked 19/10, 2009 at 18:15

7

version: "3" services: mongo: image: mongo working_dir: /c/data/ ports: - 27017:27017 deploy: replicas: 1 volumes: - /c/data/:/data/db I am tried that above stack file and I'm r...
Petiole asked 22/9, 2020 at 6:27

3

Solved

I'm trying to understand the start and end of functions in ARM assembly: PUSH {R0-R2, LR} POP {R0-R2, PC} Looking at this piece of code in IDA here's what I understood (Lets assume SP is 0x100):...
Ulrick asked 4/11, 2017 at 10:31

3

Solved

There have been various questions on SO on whether or not threads get their own stack. However I fail to understand how the OS implements or how do OSs generally implement one stack per thread. In ...
Divan asked 13/8, 2014 at 17:45

17

Solved

I always mix up whether I use a stack or a queue for DFS or BFS. Can someone please provide some intuition about how to remember which algorithm uses which data structure?
Moses asked 14/10, 2010 at 0:18

7

Solved

void function(int a, int b, int c) { char buffer1[5]; char buffer2[10]; int *ret; ret = buffer1 + 12; (*ret) += 8;//why is it 8?? } void main() { int x; x = 0; function(1,2,3); x = 1; ...
Gog asked 30/3, 2010 at 8:23

4

I'm developing a multi-threaded application for a Linux embedded platform. At the moment I'm setting the stack size for each thread (via pthread_set_attr) to a fairly large default value. I would l...
Coheman asked 12/9, 2008 at 10:19

12

In Java, I want to print the contents of a Stack. The toString() method prints them encased in square brackets delimited by commas: [foo, bar, baz]. How do I get rid of them and print the variables...
Failing asked 28/8, 2012 at 13:21

7

Solved

I need to write a function par :: String -> Bool to verify if a given string with parentheses is matching using stack module. Ex: par "(((()[()])))" = True par "((]())" = False Here's my sta...
Forwarding asked 28/5, 2010 at 8:42

5

Solved

I wrote a Stack and Queue implementation (Linked List based). There is one stack (bigStack). For example, I separate bigStack (example: stackA and stackB). I pop() a node from bigStack, I push() in...
Leptosome asked 15/10, 2012 at 19:36

16

Solved

I need to add elements to an ArrayList queue whatever, but when I call the function to add an element, I want it to add the element at the beginning of the array (so it has the lowest index) and if...
Atlas asked 18/10, 2012 at 7:52

2

Solved

I have below time-series data couple of day and i wanna unstack it by Date. But i used .unstack() then it automatically sorted by time. (Date/Time is multi index) Date Time a b c d e 2015-12-06 22...
Comeau asked 6/2, 2018 at 5:57

5

I made a Stack and an ArrayList to make a research. Actually I want now to make my Stack replaced by an ArrayList, but how to transform a Stack into an ArrayList ? How is it going with push, pop .....
Nashua asked 4/2, 2015 at 5:9

6

Solved

I have a date frame called DF with, say, three variables that repeat each other cyclically: A B C A B C 1 a1 b1 c1 a5 b5 c5 2 a2 b2 c2 a6 b6 c6 3 a3 b3 c3 a7 b7 c7 4 a4 b4 c4 a8 b8 c8 I want t...
Pantin asked 20/10, 2017 at 1:34

5

Solved

I'm looking to implement a "Stack" Class in VBA for Excel. I want to use a Last In First Out structure. Does anyone came across this problem before ? Do you know external libraries handling structu...
Errolerroll asked 2/2, 2011 at 6:39

20

We recently attempted to break apart some of our Visual Studio projects into libraries, and everything seemed to compile and build fine in a test project with one of the library projects as a depen...
Tove asked 27/9, 2008 at 0:45

1

I'm trying to solve https://leetcode.com/problems/letter-case-permutation/ void dfs(char *subString, int currentIndex, char *S, char **res, int *returnSize){ if (currentIndex==strlen(S)){ subStri...
Foregather asked 13/9, 2020 at 11:48

2

I'm looking for a way to call a C function in a different stack, i.e. save the current stack pointer, set the stack pointer to a different location, call the function and restore the old stack poin...
Booth asked 20/6, 2012 at 1:32

5

Solved

I'd like to implement a stack data structure (not to be confused with the Flutter Stack widget) in Dart so that I can handle a stack of custom TextStyles for Flutter text rendering. I know with sta...
Rubino asked 25/9, 2020 at 8:55

3

Solved

Inside a card I have a stack with 1) an image and 2) a text inside a container. How can I make the container width to fill the card width? Card( clipBehavior: Clip.antiAlias, child: Stack( chil...
Shipmaster asked 30/1, 2019 at 1:23

4

Deque ("doubled-ended queue") operations, en-queue and de-queue are possible from both ends. How do to I define ADT operations for deque using 2 stacks? The implementation should also tak...
Landmeier asked 9/9, 2012 at 7:27

© 2022 - 2025 — McMap. All rights reserved.