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

40 votes
63 answers
3k views

Difference of the square of the sum

31 votes
66 answers
4k views

Trim the array!

26 votes
43 answers
2k views

Replace all items with their counts

30 votes
48 answers
7k views

Find the largest and the smallest number in an array

56 votes
51 answers
6k views

Increment an Array

19 votes
40 answers
1k views
+50

Equal numbers in sub-array

48 votes
59 answers
3k views

Cover up zeroes in a list

12 votes
35 answers
3k views

The Nine Pattern

8 votes
23 answers
463 views

Make an inversedict

19 votes
30 answers
1k views

Filter out the pseudo-elements!

14 votes
8 answers
981 views

Change the subject

25 votes
31 answers
2k views

Enumerate an array, grouping duplicates

22 votes
43 answers
3k views

Where's my value?

32 votes
51 answers
2k views

Split a list at the second occurrence of the first element

Browse more Questions