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

6 votes
5 answers
1k views

Best Iterated Prisoner's Dilemma Move

22 votes
32 answers
2k views

Shortest digid-app GetPercentageRounds function

15 votes
8 answers
7k views

Implement a 2fuck interpreter

9 votes
7 answers
667 views

Parse basic arithmetic into an AST

17 votes
4 answers
1k views

Pushing boxes away

15 votes
14 answers
1k views

Painting with Line Filler

8 votes
16 answers
2k views

Capture the Flag... with a twist

-3 votes
0 answers
62 views

Build javascript object with default values [closed]

8 votes
7 answers
498 views

Print the notes of an increasing octave-repeating scale

24 votes
21 answers
1k views

Implement a bag without replacement

21 votes
13 answers
3k views

Knight to fork!

10 votes
9 answers
728 views

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

9 votes
12 answers
964 views

Simplify a Cycle

30 votes
49 answers
4k views

Sum every second digit in a number

16 votes
12 answers
1k views

Is this a shift matrix?

14 votes
8 answers
981 views

Change the subject

14 votes
21 answers
2k views

Find the first run of numbers summing to n

18 votes
36 answers
2k views

Friend, or Foe?

13 votes
8 answers
1k views

Toggle some bits and get an actual square

12 votes
17 answers
2k views

Remove duplicates from my academic transcript

14 votes
17 answers
3k views

Guess the song title

32 votes
27 answers
3k views

Replace all vowels with repeated "aeiou"

509 votes
937 answers
180k views

"Hello, World!"

25 votes
41 answers
2k views

Replace 0s In a String With Their Consecutive Counts

14 votes
12 answers
626 views

Form a subset that is a continuous range

19 votes
16 answers
2k views

Is it true? Ask Pip!

13 votes
21 answers
889 views

Find the Prime Signature

14 votes
14 answers
1k views

n-digit primes given the first m digits

16 votes
15 answers
1k views

Division between two strings

8 votes
4 answers
378 views

Number-only switch

26 votes
52 answers
2k views

Alphabet Checksum

9 votes
9 answers
1k views

Fewest dice rolling as dice rolling

30 votes
49 answers
3k views

Number to String in aaaaa way!

12 votes
10 answers
2k views

Round to nicer numbers

7 votes
28 answers
779 views

Keep elements in sequence that have a letter repeated at least 3 times

20 votes
50 answers
3k views

RGB to hexadecimal

81 votes
72 answers
13k views

Draw the Ukrainian Flag

20 votes
12 answers
3k views

Turn Two Dice Into One

22 votes
28 answers
2k views

Fractional Unicode Bars

5 votes
7 answers
920 views

Implement the Riemann R function

31 votes
36 answers
3k views

Is it an alphadrome?

13 votes
24 answers
1k views

8086 Segment Address to Linear

298 votes
400 answers
122k views

Add a language to a polyglot

16 votes
17 answers
763 views

CGAC2022 Day 23: North Pole Railroads

8 votes
9 answers
1k views

Wordle games without repeating letters

11 votes
17 answers
378 views

Normal Subgroups of \$S_4\$

5 votes
2 answers
690 views

Tips for shortening this type-safe addition in JavaScript

15 votes
22 answers
2k views

Rarity of a String


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