Skip to main content
Filter by
Sorted by
Tagged with
Advice
0 votes
5 replies
103 views

I'm implementing a simple stack in Python and I want to add the ability to undo the last pop() operation. The behavior I want is something like this: s.push(10) s.push(20) s.push(30) s.pop() # ...
Solomon Gleeson's user avatar
3 votes
1 answer
138 views

I wonder if there is a suitable data structure that has the following three characteristics: The collection can be modified by multiple threads Has unique elements in the collection The collection ...
pixel's user avatar
  • 26.9k
Advice
1 vote
11 replies
6k views

I'm disassembling a very simple program written in C and would like to determine how much stack storage is allocated for the char buffer[500] variable. Here is the C program: int main(int argc, char** ...
blogger13's user avatar
  • 363
1 vote
0 answers
60 views

I'm working on an application which uses dynamicly loaded page elements, which use pushState to change the URL hash and add an entry to the browser's history. It will be too much work to refactor this ...
Joeytje50's user avatar
  • 19.2k
Advice
0 votes
1 replies
113 views

In my android application, there is a 4X4 board for 2 player and 4 play buttons together. One board square is made of one stack each. And there is 5-7 layers to several widgets on one stack depending ...
Tuomas's user avatar
  • 169
2 votes
0 answers
122 views

I am a beginner Haskell programmer on Windows 11. I am writing a Snakes & Ladders program, and am attempting to set up a Stack environment to work in. I have been following this guide, as well as ...
bigpython's user avatar
1 vote
1 answer
81 views

When building a KB in GeneXus 17, it outputs the following error: error: ERR 211 Not enough local stack Followed by: warning: [BuildDaemon] Auto restarting Specifier daemon. True - AutoRestartCount: ...
DeivisKC_Solution's user avatar
Best practices
0 votes
0 replies
45 views

I’m trying to navigate between nested pages using AutoRoute, but I’m unable to route to child pages or go back using AutoRouter.of(context).back(). I have an Authentication module with multiple nested ...
Vishnu Kumar's user avatar
2 votes
2 answers
166 views

Consider the assembly program below: .section .data .section .text .global _start _start: pushl $85 #make it obvious in memory popl %ebx movl $1, %eax int $0x80 It ...
Hoax's user avatar
  • 25
0 votes
0 answers
80 views

I'm writing a 64-bit Windows DLL that needs to locate, on the stack, the return address that belongs to the host EXE (the place in the EXE that called into my DLL). The EXE loads my DLL and eventually ...
upe's user avatar
  • 2,222
2 votes
1 answer
392 views

See (far below) how the relative stack location of the local variable x changes between runs of this program. Why does that happen? I know about ASLR and can see (looking at pLow and pHigh) that the ...
Vince_Fatica's user avatar
-1 votes
1 answer
83 views

I'm working in WSL Ubuntu, writing this script in SPAM Jupyter Lab. I want to convert my 2d TIFF files into a 3d TIFF file. After stating the directory where the 2d TIFF files are, this is my code: ...
Ioanna Ms's user avatar
-2 votes
1 answer
126 views

I was tasked to write up a C program to sort an array using quicksort, without using recursion. Original array: -25, 87, 12, -6, 91, 3, -48, 70, 19, -33, 55, 2, -18, 99, 41, -72, 63, 15, -90, 27, 8, -...
Thunder's user avatar
  • 21
0 votes
1 answer
131 views

I am trying to implement the classic balanced parens with stacks So I decided to test the stupid, O(n^2) algorithm def balanceada(string): while True: before = len(string) string = ...
josinalvo's user avatar
  • 1,512
4 votes
2 answers
230 views

I am studying for my Computer Security exam and I am on the Format String Bugs section. In the notes there is this code, and I was testing it on my VM: #include <stdio.h> void test(char *arg) { ...
teozzo's user avatar
  • 51

15 30 50 per page
1
2 3 4 5
740