Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Kolmogorov complexity, informally, is the amount of code it takes to describe or produce a constant object, such as a string or image. When posting a challenge in this category, please make sure it adds something new to existing challenges.
2
votes
Display numbers lacking 2's
Pyth, 17 bytes
VS100I!}\2%"%s"NN
Try it online
My first code golf submission, also my first time using Pyth, this took way longer to put together than I expected.
Explanation
VS100 for loop from …
1
vote
1, 2, Fizz, 4, Buzz
Pyth, 39 bytes
VS100J+?q0%N3"Fizz"k?q0%N5"Buzz"k?qJkNJ
Try it online!
There's probably an easier and shorter way. Also is(polishNotation, annoying).
This is roughly equivalent to:
for x in range …