CARVIEW |
Select Language
HTTP/2 200
date: Sat, 26 Jul 2025 08:35:35 GMT
content-type: text/html; charset=utf-8
cf-ray: 9652907ecab9a9c3-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=c93823eb-d689-4a00-8fd7-a06279af3ea2; expires=Sun, 26 Jul 2026 08:35:35 GMT; domain=.stackexchange.com; path=/; secure; httponly
strict-transport-security: max-age=31536000; includeSubDomains
vary: Accept-Encoding
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
x-clacks-overhead: GNU Terry Pratchett
x-frame-options: SAMEORIGIN
x-request-guid: a55e048f-8f17-4256-977e-d665823caecd
x-worker-origin-response-time: 624000000
x-dns-prefetch-control: off
set-cookie: prov=c93823eb-d689-4a00-8fd7-a06279af3ea2; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=0NC3Vp3pngYrt8XfgtOEVEn1tUhS3yfZcDreMCliowY-1753518935-1.0.1.1-J0tTjHeQwfZ.6mUWLKgh.yeAM04Dc_yp1Y.vW1FR6EIoByPGtHH.NcaHLsbrzO2gy0z1rWY3KTQr9E_8wNWEGBlLljYPm05ikM5LWiC.Ek0; path=/; expires=Sat, 26-Jul-25 09:05:35 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=M8ZR6KuUdXypa783sFeIkKRzpfOSOzj0EMS9PKZfbWo-1753518935493-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
Newest 'algorithm' Questions - Code Review Stack Exchange
Skip to main content
Stack Exchange Network
Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Visit Stack ExchangeTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about TeamsQuestions tagged [algorithm]
An algorithm is a sequence of well-defined steps that define an abstract solution to a problem. Use this tag when your issue is related to algorithm design.
5,100 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
1
vote
0
answers
33
views
Lock free Leaky Bucket Rate Limiter
I want to validate my solution for a lock-free leaky bucket rate limiter. Given a queuing capacity and rate limit per second, it should queue requests till capacity is reached and it should allow only ...
6
votes
3
answers
687
views
N queen problem-like (+rooks and a different goal)
The problem is:
You have Q queens and R rooks on a board with sides of length (R+Q) ≤ 8, and you have to place all the pieces so that none attack any other piece. Each square on the board has a score ...
0
votes
0
answers
45
views
Fixed BIDDFS (bidirectional iterative deepening depth first search) in Java
Intro
I have this GitHub repository for doing pathfinding in directed unweighted graphs. This post is about BIDDFS proposed by Richard Korf in his paper.
Code
...
1
vote
0
answers
18
views
Use Mathemaitca to calculate Treewidth
The treewidth is a measure of the count of original graph vertices mapped onto any tree vertex in an optimal tree decomposition.
I wrote Mathemaitca code to calculate Treewidth
based on the Python ...
2
votes
0
answers
21
views
Mathematica implementation of Welch method for constructing Costas arrays
I ported C++ implementation of Welch method for constructing Costas arrays to Mathematica.
Any feedback would be appreciated.
...
5
votes
3
answers
1k
views
Project Euler Problem #1: Multiples of 3 or 5
Project Euler Problem #1
Multiples of 3 or 5 states:
If we list all the natural numbers below 10 that are multiples of 3 or
5, we get 3, 5, 6 and 9. The sum of these multiples is 23.
Find the sum of ...
1
vote
0
answers
22
views
LibID: a Java library containing some iterative deepening algorithms for pathfinding on directed unweighted graphs
Intro
I have this GitHub repository containing some iterative deepening pathfinding algorithms.
Code
...
4
votes
0
answers
57
views
SHA1 Algorithm Implementation in Zig
I have implemented the SHA1 algorithm in Zig, as a learning exercise, to teach myself both Zig and the actual algorithm behind SHA1. Now the second part I think I understood well enough. The ...
9
votes
5
answers
2k
views
C method to determine whether a byte array is homogeneous
I engineered myself into a situation where I wanted to check whether a region of memory consists of identical bytes. I wanted to at least try to avoid the obvious solution of an O(n) loop, but also ...
5
votes
2
answers
81
views
Calculate distance score for local alignments (ex. Gotoh local)
Is there a better way to calculate distance scores for local alignment than this? Or is the method that I'm currently using robust enough? The full code is here with the actual alignment ...
4
votes
2
answers
232
views
Ruby Array#own_shuffle method
I have tried to implement the Array-shuffle method myself. Haven't had a look on some similar algorithm-examples by purpose and tried to figure out something myself.
The actual Array-extension:
...
7
votes
3
answers
549
views
Team picker command line application
I've made a program for randomly splitting game participants into different teams. The code works and solves the problem. I'm interested in advice on what you'd do differently or better.
...
5
votes
2
answers
134
views
N-dimensional bilateral_filter Template Function Implementation for Image in C++
This is a follow-up question for An Updated Multi-dimensional Image Data Structure with Variadic Template Functions in C++ and bilateral_filter Template Function Implementation for Image in C++. The N-...
2
votes
1
answer
172
views
Attempt at a Different Variation of the strstr(...) Function
I decided to work on an idea I had to 'optimize' the classic C function strstr.
Most of the implementations I had seen that did not make use of advanced ...
7
votes
2
answers
528
views
Subtracting the sum of the current digits from a positive integer N until it reaches 0
Given a positive integer N, subtract the sum of its digits and count how many times this operation must be applied to make N become 0.
...
- The Overflow Blog
-
-
- Featured on Meta
-
-
Related Tags
java × 1285
python × 1206
performance × 875
c++ × 850
programming-challenge × 653
javascript × 489
c# × 401
strings × 356
c × 334
python-3.x × 324
sorting × 320
beginner × 306
graph × 253
time-limit-exceeded × 253
array × 247
tree × 213
recursion × 177
interview-questions × 168
python-2.x × 163
complexity × 134
combinatorics × 133
optimization × 130
mathematics × 109
c++11 × 102
matrix × 100
more related tags
Hot Network Questions
- Source that Eliyahu Hanavi was an angel at the creation
- leftmargin in enumerate
- Automatic drawing of polygon around selected polygons in QGIS
- Is a chemistry-first technological paradigm as plausible as one focused on physics or biology?
- What does this emblem mean?
- How can I evenly space my instances after they've been progressively scaled?
- Can you yaw an airplane by only using differential thrust?
- spots / stains on tubeless tire
- What Isp can be gotten from a napthalene (mothball) hot gas thruster? Did it work in space?
- Siding listed in IRC - what are “Wood Rustic, Drop”, and “Butt Tip”?
- How do I create a Chrome profile via the command line that also shows up in the profile switcher?
- Heavy shelves, but not a center stud
- Exterior derivative of Hodge star of 1-form
- Is there such a thing as 'aerospace grade software'?
- Can authors be blacklisted by academic publishers for multiple rejections without any ethical misconduct?
- Mars colony book I read in the 80's. The name?
- Access denied attempting to delete file on Windows Server
- Use of l3keys to collect optional arguments of `\NewDocumentCommand`
- Vector Bundle and the fiber-preserving condition
- Will an error in two of my published papers affect my PhD thesis evaluation?
- Likelihood of the data in a OU-like process
- Is the surface of Mars or the Moon mostly (or relatively) homogeneous, unlike the Earth?
- Is it possible to use the PC power button to pre-select the OS in rEFInd UEFI dual boot setup?
- Did the first sin in the garden of Eden actually take place before the fruit was eaten?