CARVIEW |
Select Language
HTTP/2 200
date: Sun, 27 Jul 2025 20:24:49 GMT
content-type: text/html; charset=utf-8
cf-ray: 965edcc80d173585-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=d391d71b-1527-4ecc-942e-b061d6ab57a5; expires=Mon, 27 Jul 2026 20:24:48 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: a39c4ef2-0b35-4709-b342-975fbff11790
x-worker-origin-response-time: 503000000
x-dns-prefetch-control: off
set-cookie: prov=d391d71b-1527-4ecc-942e-b061d6ab57a5; Path=/; HttpOnly; Domain=stackexchange.com
set-cookie: __cf_bm=8TUCMC2wGnU94UL2IWXbgUzgm2yYExt_x2pHlTGwo4c-1753647889-1.0.1.1-eX2cvp.bxseqs5wXxMi8TOwBxjwSOHubodp6AcEUHIvovPccUF9oTpWLW.K.cTWVEQ22Zo_1mheN2PtXs7K81wdW1HAt7br05RP67t.jIac; path=/; expires=Sun, 27-Jul-25 20:54:49 GMT; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=jn4AWCIiOT7hOtxv4yNA2ZdJvSJjiCYm89Bgdh9JjZs-1753647889166-0.0.1.1-604800000; path=/; domain=.stackexchange.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
Newest 'code-challenge' Questions - Code Golf 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 [code-challenge]
A code challenge is a competition for creative ways to solve a programming puzzle with an objective winning criterion not covered by other scoring tags (e.g. code-golf).
908 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
2
votes
1
answer
115
views
Unstablizable LaTeX [closed]
from Latexmk:
If you use cross-references, you often have to run LaTeX more than once ...
Sometimes cross-referenced location changed and you need to run LaTeX again to create the correct reference. ...
8
votes
1
answer
366
views
Sequence of programs that prints the next one with length growth being equal to π
Challenge
You must produce an infinite sequence of programs \$P_0, P_1, P_2,\$ … such that each program \$P_n\$, when run, prints the exact source code of \$P_{n+1}\$ and then halts.
Each program \$...
4
votes
8
answers
845
views
How many distinct characters can be used to implement Boolean Algebra in your programming language [closed]
I am interested in the following problem:
What is the minimum number of distinct characters used in any programming language that can implement Boolean Algebra?
In particular, what is the set that ...
2
votes
1
answer
254
views
Long running section 11.4 Minsky machine
Challenge
We define a Minsky machine as a program made of the following two instructions:
+X which increments the register X and continues to the next instruction
-Xn which simply continues if X is ...
3
votes
1
answer
228
views
Count number of families of sets satisfying a list of criteria
CHALLENGE
This problem has a math background.
For n=1,2,3,4 we want to count the number of families of sets with maximum n elements that satisfy many criteria of the form:
$$\bigoplus_{k\in A,A\in \...
3
votes
5
answers
352
views
Run a board game tournament
You are in charge of running a board game tournament. Unfortunately, you only have one copy of the game and only so much time, so only a limited number of games can be played. Similarly, you have a ...
22
votes
2
answers
2k
views
Fast leap year check
The task is to find parameters that make a fast leap year check correct for the widest range of years.
We assume the Proleptic Gregorian calendar, which extends the Gregorian calendar backward from ...
4
votes
8
answers
3k
views
Convert 8 Bit brainfuck to 1 bit Brainfuck / Boolfuck
Goal
Input is a Brainfuck program for 8 bit cells, output it for 1 bit cells.
Explanation
We all know Brainfuck, normally it uses 8 bit cells. But there are implementations where a cell is just 1 bit, ...
3
votes
2
answers
525
views
Largest possible relative error
Output
\$20\$ float64s with absolute value between 1 and 2 inclusive whose sum has the largest possible relative error. We can assume the true sum is not zero.
The sum is to be computed from left to ...
16
votes
3
answers
2k
views
Find 10 float64s that give the least accurate sum
Input
Integer \$n > 1\$
Output
Ten 64 bit floating point numbers between \$-n\$ and \$n\$, inclusive, whose sum is the least accurate.
Details and examples.
These examples are not claimed to be ...
-3
votes
5
answers
284
views
Create the characters you can write on a MacOS US English Keyboard (as another OS will read them)
Introduction
This is a small challenge I came up with while trying to make some compact code for my younger brother to use. I don't think it's particularly interesting, but I believe it presents some ...
5
votes
9
answers
3k
views
nimi ale lon toki pona! (Every word in Toki Pona!)
"nimi ale lon toki pona" is a song by YouTuber jan Misali which lists 137 common words in the constructed language Toki Pona. This challenge is not a duplicate of "How high can you ...
7
votes
2
answers
337
views
Convert maximum values to bit widths
Background
The newest version of the C standard, C23, adds preprocessor macros like INT_WIDTH, ULONG_WIDTH, and ...
19
votes
3
answers
1k
views
Magical BF: BF code that works in two ways
Challenge
In this challenge, we will use a language that is very similar to Brainfuck but slightly different.
This variant of BF does not have any input and output commands; instead, it simply takes ...
1
vote
2
answers
314
views
The many ways to skin a `cat` [duplicate]
The well known cat command simply copies its stdin directly to stdout unchanged. But there are plenty of other commandline tools that exist...
What other commands ...
Welcome to Code Golf and Coding Challenges Stack Exchange! This is a site for recreational programming competitions, not general programming questions. Challenges must have an objective scoring criterion, and it is highly recommended to first post proposed challenges in the Sandbox.
- The Overflow Blog
-
-
- Featured on Meta
-
-
Related Tags
math × 78
restricted-source × 72
string × 70
optimization × 54
source-layout × 49
number × 46
quine × 42
compression × 38
polyglot × 37
test-battery × 33
game × 32
sequence × 30
busy-beaver × 29
code-golf × 29
code-generation × 29
primes × 26
ascii-art × 24
cops-and-robbers × 24
graphical-output × 21
fastest-code × 21
combinatorics × 21
sorting × 19
rosetta-stone × 17
brainfuck × 17
more related tags
Hot Network Questions
- Civilian airplanes with inside fuselage jet engines
- A national poll of 1000 French returns 25% of "Yes". Is it enough to say that it's quite impossible locally to be 0%, if we don't know the variance?
- Can Spi flash memory's contents be corrupted from heat?
- Existence of Jordan curves between a compact and an open set
- Not being introduced to the team – should I ask for it?
- When did the OEIS get even better?
- Statistics – Linear Inference – What is the moment generating function of non-central t-distribution?
- “Unclear step in a math book for entertainment”
- Why is time reversal not a natural part of the Galilean group?
- Not your ordinary affix riddle
- How to extend an MDF shelf?
- When was thermal expansion in solids first described?
- How can my dwarves keep humans from reverse engineering their technology?
- Is this a violation of open source?
- Symbols for A.P. Morse's book in Set Theory
- Rec Letter from Professor (who I haven't done research with) or from Work Supervisor
- How should one pronounce plural French-derived German words?
- Why am I winning always? A coincidence perhaps?
- If a mathematical theorem is true, what it is true of?
- Anonymizing a submission for double-blind review
- "I met a monk and philosopher." How many people did I meet?
- I don't have enough alive employees to start the day. What now?
- Lower bound on ratio of expected maxima of i.i.d. samples from distribution on [0,1]
- Will a reinforced 1" concrete slab be durable?