Newest Questions

Filter by
Sorted by
Tagged with
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 ...
Simon's user avatar
  • 209
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 ...
Eoin's user avatar
  • 263
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 ...
heuristic_type's user avatar
1 vote
3 answers
183 views

Simple stack of integers

I've a simple push/pop implementation in my program: ...
3rdgrade-dropout's user avatar
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 ...
Eric's user avatar
  • 465
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: ...
user366312's user avatar
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 ...
cold10's user avatar
  • 559
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 ...
jakelarson06's user avatar
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. ...
Strange Alchemist's user avatar
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. ...
Andrea Ciufo's user avatar
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 ...
Andy's user avatar
  • 113
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? ...
Emil Holmsten's user avatar
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,...
Looser User's user avatar
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 ...
coderodde's user avatar
  • 31.3k
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 ...
Xeuxs's user avatar
  • 23

15 30 50 per page
1
243 244
245
246 247
5184