Code Golf Stack Exchange is a question and answer site for programming puzzle enthusiasts and code golfers. It only takes a minute to sign up.

Sign up to join this community
Anybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top

Top Questions

22 votes
32 answers
2k views

Shortest digid-app GetPercentageRounds function

24 votes
21 answers
1k views

Implement a bag without replacement

19 votes
16 answers
2k views

Is it true? Ask Pip!

14 votes
17 answers
3k views

Guess the song title

21 votes
13 answers
3k views

Knight to fork!

13 votes
21 answers
889 views

Find the Prime Signature

14 votes
21 answers
2k views

Find the first run of numbers summing to n

12 votes
17 answers
2k views

Remove duplicates from my academic transcript

14 votes
14 answers
1k views

n-digit primes given the first m digits

16 votes
15 answers
1k views

Division between two strings

15 votes
14 answers
1k views

Painting with Line Filler

16 votes
12 answers
1k views

Is this a shift matrix?

15 votes
8 answers
7k views

Implement a 2fuck interpreter

9 votes
12 answers
964 views

Simplify a Cycle

8 votes
16 answers
2k views

Capture the Flag... with a twist

12 votes
10 answers
2k views

Round to nicer numbers

14 votes
8 answers
981 views

Change the subject

14 votes
12 answers
626 views

Form a subset that is a continuous range

10 votes
9 answers
728 views

Find the length of the longest substring with all different characters in O(n) time

13 votes
8 answers
1k views

Toggle some bits and get an actual square

8 votes
9 answers
1k views

Wordle games without repeating letters

8 votes
7 answers
498 views

Print the notes of an increasing octave-repeating scale

10 votes
8 answers
808 views

Maximum of outer product of integer vectors (in linear time)

9 votes
7 answers
667 views

Parse basic arithmetic into an AST

9 votes
9 answers
1k views

Fewest dice rolling as dice rolling

17 votes
4 answers
1k views

Pushing boxes away

13 votes
3 answers
2k views

Tips for improving your score in fastest code challenges

12 votes
6 answers
834 views

ASCII-art polygons to GeoJSON coordinates

8 votes
4 answers
378 views

Number-only switch

17 votes
3 answers
512 views

Intersection area of two rotated rectangles

6 votes
5 answers
1k views

Best Iterated Prisoner's Dilemma Move

9 votes
3 answers
519 views

RADD decomposition of an integer

5 votes
2 answers
690 views

Tips for shortening this type-safe addition in JavaScript

5 votes
2 answers
275 views

Don't output the file 2

0 votes
1 answer
107 views

Tips for golfing in Wren

4 votes
2 answers
22 views

Salacious Bacon Tripod

0 votes
0 answers
125 views

Tips for golfing in Zig

-3 votes
0 answers
62 views

Build javascript object with default values [closed]


Looking for more? Browse the complete list of questions, or popular tags. Help us answer unanswered questions.