Newest Questions

4 votes
1 answer
95 views

Positive Integer Class Supporting Arbitrary Number of Digits

I have implemented an elementary positive integer class that supports addition, subtraction, and multiplication for an arbitrary number of digits using a singly linked list. ...
Kushagr Jaiswal's user avatar
1 vote
0 answers
33 views

ds (directory switcher): a *nix program for tagging directories with (short) tags and switching between them via tags [closed]

Repo The complete program: GitHub repository How it works After you have cloned the above repository, change directory inside it and type make in order to compile ...
coderodde's user avatar
  • 31k
1 vote
1 answer
80 views

Swift: Find neighbor-elements within an array

I need a function which finds the left and right neighbor-element within an integer-array, based upon a given index. If the given element is 0, then it shall return largest index as left neighbor. ...
michael.zech's user avatar
  • 4,992
6 votes
2 answers
359 views

A simple server-client application in C

I am reading "The Linux Programming Interface" by Michael Kerrisk. I'm studying about sockets and I made a simple application using sockets on the unix domain. I want to know if I'm using ...
Super Tux's user avatar
  • 163
2 votes
1 answer
74 views

Lock-free queues and stacks

I am currently working on implementing lock-free stacks and queues. So far, they seem to function properly in test programs, but I am unsure if there are any underlying issues or areas for improvement(...
untitled's user avatar
  • 121
11 votes
5 answers
1k views

I implemented FFT in C

I wrote Cooley-Tukey's FFT algorithm in C. And I want to know how safe is this code? Is it just trash? How can I make it more memory safe? ...
RudraSama's user avatar
  • 151
6 votes
1 answer
205 views

Optimizing a Rust permutation chooser for the most subsequences

I had semi-recently asked a question (well a couple closely related questions) on math.stackexchange. The simplest question is phrased as follows: You are allowed to make 3 permutations of length n. ...
Dair's user avatar
  • 6,180
4 votes
4 answers
732 views

A program to solve quadratic equations ax² + bx + c = 0 with imaginary results

This is my second post and my second “tough” question I came across while reading PPP3. I graduated a while ago and honestly forgot the equation... The question didn’t explicitly say I needed to find ...
nikx0918's user avatar
  • 111
0 votes
0 answers
36 views
+50

Is this how Flutter BloC is suppose to be used?

I'm new to Flutter and BloC and it just seems quite different than what I've been using until now. In terms of state, I'm coming from the JS world of Vuex, Pinia and Redux and I've also worked a with ...
thefallen's user avatar
4 votes
5 answers
655 views

Password storage with gatherer plugin in Python

First the PasswordStore, which is pretty straight-forward. It stores title-password association, but it is important that a title can have multiple passwords. The <...
viuser's user avatar
  • 625
7 votes
1 answer
305 views

General Two-dimensional Elliptical Gaussian Image Generator in C++

This is a follow-up question for Two dimensional gaussian image generator in C++ and Three dimensional gaussian image generator in C++. According to the statement in https://fabiandablander.com/...
JimmyHu's user avatar
  • 7,098
1 vote
0 answers
71 views

Simple image captcha test in Java and JS (revised version)

Following on from my previous question, I would like to know what could be improved here and whether it is now secure. I had to use Java 8 because the Blade lib was built with it, and I want to extend ...
Tobias Grothe's user avatar
11 votes
3 answers
949 views

Golden-section optimization with complication

I'm trying to implement the so-called golden-section optimization in C++. This is a simple algorithm to find an extremum of a univariate function \$f\$ within an interval \$[a,b]\$. The crux is to ...
darksun's user avatar
  • 211
2 votes
1 answer
76 views

Encapsulating status codes and messages à la absl::Status

I'm new to Lua and thought a decent way of familiarizing myself with the language would be to implement some basic utility functionality around status codes. In particular I've reimplemented a subset ...
zziccardi's user avatar
4 votes
1 answer
88 views

Implement a simple image captcha test yourself in Java and JS

First of all: I was looking for a simple image captcha solution for a website, but all I found were "Over-the-top" solutions for me. So I decided to write something to self. I mainly use two ...
Tobias Grothe's user avatar

15 30 50 per page
1
2 3 4 5
5182