Newest Questions
77,759 questions
6
votes
1
answer
358
views
Implementation of DFS algorithm as described by Algorithms - Dasgupta, Papadimitrious, Umesh Vazirani
I just want feedback regarding C++ coding style and if in any way I can optimize my code (e.g. to use a different data structure). I'm only trying to use up to C++ 14 standard code. Any other ...
3
votes
2
answers
142
views
Spring boot shop application with error handling
I'm writing a simple online shop using spring boot, for learning purposes. Right now I have purchasing-service and a product-service. The purchasing-service makes requests to the product-service via ...
5
votes
3
answers
2k
views
Python: Handling different HTTP status codes using the requests library
I am using the requests library to make requests to an API. However, I am not sure how to handle different status codes. I am particularly interested in handling ...
1
vote
3
answers
183
views
Simple stack of integers
I've a simple push/pop implementation in my program:
...
6
votes
2
answers
289
views
Write a program entab that replaces strings of blanks by the minimum number of tabs and blanks to achieve the same spacing
My attempt at Exercise 1-21 in the The C Programming Language book written by Brian Kernighan and Dennis Ritchie.
Exercise ...
1
vote
2
answers
1k
views
Geting file-names from the current working directory
The following routine returns the file-names from the current working directory:
...
7
votes
2
answers
2k
views
Chess Game with GUI in C++ using SDL2
Introduction
So, I recently completed a chess game with a GUI in Python, using Pygame. Upon research, I learned that Pygame is built on SDL, and since I wanted to practice C++ more, I decided to code ...
4
votes
1
answer
132
views
Python Password Generator with custom parameters
I have the following code here
It's a password generator that lets you choose a completely random password with a certain length of a custom password with different amounts of character types.
I want ...
0
votes
1
answer
107
views
Printing Permutations
Following is a leetcode problem:
Given an array nums of distinct integers, return all the possible permutations. You can return all the possible permutations. You can return the answer in any order.
...
1
vote
1
answer
376
views
Pandas Upsampling Time Series Splitting Equally the values through the weeks starting on monday
I build my code studying this question: "Divide total sum equally to higher sampled time periods when upsampling with pandas".
I am wondering if can be improved the code and if it is right.
...
1
vote
1
answer
552
views
Optimising Read/Write Speed of Excel VBA Copy/Paste Macro
I have an Excel sheet that connects to third party software which populates Sheet1 with data. It does this multiple times per second and overwrites previous data.
I have written the macro below to ...
2
votes
1
answer
89
views
Helper functions to get, set and remove from Firefox browser storage. Also, to get, push and remove from lists stored in the database
I am making a plugin for Firefox, this is (more or less) my first time working with JavaScript. Is this a reasonable design for working with both values and lists in a database?
...
9
votes
3
answers
167
views
Compressed output of set in Python
In order to provide a better output of sets with many consecutive elements (a similar class could be written for a list or tuple,...
0
votes
1
answer
79
views
Delayed, concurrent event stack in Java - follow-up
I have slightly refactored the Delayed, concurrent event stack in Java. Now it looks like this:
DelayedEventStack.java
...
1
vote
0
answers
106
views
Save Game Editor in Python/PySide
I'm developing a Xenoblade Chronicles 3 save data editor in Python with PySide6. My experience in Python has, over the years, been terminal scripts or web applications, so GUI scripting is completely ...