Code Golf Stack Exchange Community Digest

Top new questions this week:

Speak in Binary

Background This video goes into ways you can humanize binary, including creating a more compact writing notation using . and | ...

code-golf binary natural-language  
user avatar asked by user119818 Score of 2
user avatar answered by l4m2 Score of 1

Greatest hits from previous weeks:

Tips for golfing in Python

What general tips do you have for golfing in Python? I'm looking for ideas which can be applied to code-golf problems and which are also at least somewhat specific to Python (e.g. "remove comments" is ...

code-golf python tips  
user avatar asked by moinudin Score of 341
user avatar answered by moinudin Score of 219

Google's doodle on kids coding: shortest program solving all the levels

Today's Google doodle is about Celebrating 50 years of Kids Coding: The goal is program the path of a little bunny so that it can eat all the carrots. There are 4 types of blocks (see pictures below): ...

game atomic-code-golf  
user avatar asked by Surb Score of 33
user avatar answered by reinis_mx Score of 32

Produce the number 2014 without any numbers in your source code

Note to challenge writers as per meta consensus: This question was well-received when it was posted, but challenges like this, asking answerers to Do X without using Y are likely to be poorly received....

restricted-source code-golf  
user avatar asked by Joe Z. Score of 634
user avatar answered by cat Score of 156

Print 4 billion if statements

Recently (okay, December 2023, I'm a little late) there's been a meme going around about a program checking if a 32-bit unsigned integer is even or odd using four billion if statements: ...

code-golf integer open-ended-function code-generation  
user avatar asked by emanresu A Score of 33
user avatar answered by xnor Score of 17

Mathematics is fact. Programming is not

In mathematics an exclamation mark ! often means factorial and it comes after the argument. In programming an exclamation mark ! ...

code-golf string math logic factorial  
user avatar asked by Calvin's Hobbies Score of 200

Polygon prefixes

Polygons are named after the number of sides that they have. A pentagon has 5 sides, an octagon has 8 sides. But how are they named? What's the name for a 248-sided polygon? All polygons are suffixed ...

code-golf geometry  
user avatar asked by beary605 Score of 18
user avatar answered by baby-rabbit Score of 5

Hard code golf: Regex for divisibility by 7

Matthias Goergens has a 25,604-character (down from the original 63,993-character) regex to match numbers divisible by 7, but that includes a lot of fluff: redundant parentheses, distribution (...

code-golf math regular-expression  
user avatar asked by Charles Score of 91
user avatar answered by Anders Kaseorg Score of 28
You're receiving this message because you subscribed to the Code Golf community digest.
Unsubscribe from this community digest       Edit email settings       Leave feedback       Privacy
Stack Overflow

Stack Overflow, 14 Wall Street, 20th Floor, New York, NY 10005

<3