2022 Developer Survey is open! Take survey.

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

Explore our Questions

27 votes
45 answers
4k views

Shortest power set implementation

17 votes
28 answers
1k views

Equal numbers in sub-array

25 votes
46 answers
4k views

Add an array with itself

21 votes
42 answers
4k views

Create chunks from an array

13 votes
27 answers
2k views

Filter an array so that duplicate items are removed

16 votes
25 answers
1k views

Alternating sums of multidimensional arrays

12 votes
5 answers
434 views

Unshuffle my poker chips

12 votes
9 answers
1k views

AoCG2021 Day 13: Defrag in action!

7 votes
2 answers
239 views

Write a (simplified) BitCycle interpreter

22 votes
15 answers
1k views

Safety in numbers

20 votes
13 answers
2k views

Shuffle an array, a little bit

11 votes
22 answers
2k views

Generate all Sublist Partitions

21 votes
16 answers
1k views

Get the trends of an array

16 votes
21 answers
3k views

Largest rectangle in a skyline

Browse more Questions