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
7 answers
39 views

CGAC2022 Day 9: Playing with bits

61 votes
29 answers
18k views

Tips for golfing in C++

81 votes
202 answers
21k views

The Letter A without A

58 votes
82 answers
11k views

How even is a number?

103 votes
315 answers
21k views

Simple cat program

4 votes
7 answers
600 views

Transpile Brainstract to Brainfuck

4 votes
7 answers
911 views

Write a program that prints a program that's almost quine

3 votes
4 answers
81 views

Find the representative submatrix

11 votes
4 answers
301 views

Santa's Shortest Path Problem

20 votes
38 answers
1k views

Disappearing Elements

12 votes
9 answers
379 views

CGAC2022 Day 8: Fen The Wicked, Part 2

7 votes
28 answers
3k views

Base-2 integer logarithm of 64-bit unsigned integer

17 votes
26 answers
780 views

Sum the rows of the concatenated triangle

19 votes
32 answers
7k views

Find the number of leading zeroes in a 64-bit integer

18 votes
20 answers
939 views

CGAC2022 Day 7: Fen The Wicked

55 votes
47 answers
2k views

Appending String Lengths

10 votes
2 answers
236 views

><> numbers metagolf

3 votes
12 answers
746 views

Hi, can you draw some odd art? Bye!

24 votes
14 answers
2k views

Do the NP: find the largest clique

-1 votes
0 answers
80 views

Highest(non-mate) evaluation that Stockfish can get? [closed]

21 votes
3 answers
2k views

Piet (Mondrian)'s Puzzle

15 votes
13 answers
2k views

Generate the n'th Fermi-Dirac Prime

107 votes
116 answers
19k views

Code Golf Christmas Edition: How to print out a Christmas tree of height N

33 votes
29 answers
4k views

Smallest Zeroless Base

22 votes
13 answers
1k views

Numbers with similar powers

0 votes
0 answers
33 views

Filter Out 0 outbound value transaction from etherscan API [closed]

22 votes
25 answers
2k views

Fractional Unicode Bars

509 votes
936 answers
178k views

"Hello, World!"

27 votes
19 answers
2k views

Sum on a Fenwick Tree

13 votes
26 answers
1k views

Output the length of (the length plus a message) [duplicate]

15 votes
9 answers
941 views

CGAC2022 Day 6: Shuffles with specific "magic number"

11 votes
14 answers
1k views

CGAC2022 Day 5: Preparing an advent calendar

14 votes
15 answers
3k views
+100

Shorten the Java Package

19 votes
4 answers
2k views

Write a number as a sum of Fibonacci numbers

31 votes
27 answers
3k views

Implement the random Fibonacci sequence

30 votes
31 answers
2k views

Equality in the sum of digits

18 votes
22 answers
2k views
+200

Remove the last 'n' occurences of a substring from a string

11 votes
23 answers
2k views

Exponent of complex numbers

38 votes
62 answers
3k views

The Squaring Sequence

19 votes
12 answers
745 views

As many near-repdigit primes as possible

186 votes
397 answers
68k views

1, 2, Fizz, 4, Buzz

235 votes
422 answers
60k views

Golf you a quine for great good!

16 votes
10 answers
1k views

Find the box by its corners

32 votes
55 answers
5k views

Calculate average characters of string

12 votes
26 answers
2k views

Find the nth number where the digit sum equals the number of factors

12 votes
45 answers
3k views

Repeat Hello World according to another string's length

95 votes
51 answers
14k views

In Honor of Adam West

125 votes
41 answers
23k views

La La Land... no wait, Moo Moo Moonlight


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