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.
0
votes
Code Golf - Covfefe on tap
Ruby - 53 chars
s='covfef';21.times{|i|puts s +=(i.odd? ? 'f' : 'e')}
Note: This is the OP's answer, there must be better one's out there.
36
votes
66
answers
10k
views
Generate a deck of cards
Here's an array representing a standard deck of cards, including two Jokers.
[
"AS", "2S", "3S", "4S", "5S", "6S", "7S", "8S", "9S", "10S", "JS", "QS", "KS",
"AD", "2D", "3D", "4D", "5D", "6D", …
-7
votes
19
answers
421
views
Code Golf - Covfefe on tap
As we all know, negative press covfefe has been conspiring to bring down the American president for some months now.
There's also, definitely, an algorithm in play in that word. Covfe is a refreshing …
0
votes
Output the language name times the number of characters
Ruby: 10 chars
p 'ruby'*4
Result
rubyrubyrubyruby
Previous Implementation: 25 chars
def x(y);p y*y.length;end
Simple invocation:
x('javascript')
=> "javascriptjavascriptjavascriptjavascript …
4
votes
6
answers
988
views
The house that Jack built [duplicate]
So, there's a famous children's rhyme...
This is the house that Jack built.
This is the malt
That lay in the house that Jack built.
This is the rat
That ate the malt
That lay in the house that Ja …
11
votes
22
answers
2k
views
Generate the Crystal Maze™ time matrix
Behold! The Crystal Maze™ Time Matrix!
0 1 2 3 4 5 6 7 8 9 10
1 0 5 10 15 20 25 30 35 40 45 50
2 0 10 20 30 40 50 60 70 80 90 100
3 0 15 30 …
1
vote
Output programming language name
Ruby, Not 31 but 28 bytes
p'Qtax'.chars.map(&:next)*""
Thanks @iamnotmaynard for the improvements
Try it online!