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.
3
votes
Print a 10 by 10 grid of asterisks
Python 3, 25 23 bytes
Hey I actually outgolfed someone :).
print(("*"*9+"*\n")*10)
if stderr is valid, 22 bytes
exit(("*"*9+"*\n")*10)
realised that execing didn't actually golf it down :(
…
7
votes
Print a 10 by 10 grid of asterisks
Brainfuck, 74 bytes
first brainfuck submission ever, first reasonable length program, too
+++>>+++>>+++++++[<+<+<<+>>>>-]<[>++++++<-]<<<[->++++++++++[>>>.<<<-]>.<<]
+++>>+++>>+++++++[<+<+<<+>>>> …
2
votes
Print a 10 by 10 grid of asterisks
Deadfish ~, 24 bytes
{{iiii}ii{c}{ddd}ddc{d}}
how it works:
{foo} does foo exactly ten times.
first, it starts a ten loop, in this loop, it sets the counter to 42, prints it ten times (as char (as …
0
votes
"99 Bottles of Beer"
Python 3, 234 bytes
i=99
s='s'
b='%s bottle%s of beer'
o=' on the wall'
y=b%(i,s)
while i:print(y+o+', '+y+'.');i-=1;s=('',s)[i>1];y=b%(i,s);print(('Take one down, pass it around, '+y+o+'.\n','Go to …
1
vote
Draw an alphabet party hat
Turtlèd, 70 68 bytes
note the trailing space
#abcdefghijklmnopqrstuvwxyz#' -{ -{ +.r_}' l[ l-]d,(*@!' r)(!@*)_}'
Try it online!
How it works:
#abcdefghijklmnopqrstuvwxyz# Set strin …
1
vote
i love yOu i lOve you i love yOu!
Python 3, 170 bytes
from textwrap import*
print('\n'.join(' '.join(list(i))for i in wrap(''.join(bin(ord(i)+256)[3:]for i in (7*"il%svey%su")%(tuple("oOOooOOOooOoOO"))+"ilOv"),21))+" 0 1 1")
makes …
6
votes
"Hello, World!"
Sad-Flak, 199+3 bytes = 202 bytes
3 bytes for the -A arg. This lang uses a "codepage", where ≤≥ are one byte each (that is, I have a thing that replaces ` and ~ with those chars and runs it)
32
({}≤ …
5
votes
Bake a slice of Pi
Turtlèd, 135 129 bytes
(the interpreter isn't really slightly buggèd (anymore :]), but it does not affect this program)
By restructuring and rewriting my program, I golfed... six bytes
And now I have …
6
votes
Take a ride on the Reading, If you pass Go, collect $200
Turtlèd, 72 bytes
"K C I I B A V W M G">"GPNCPSCPLBG">"G M C B I R O C V C J">"JSESVPSCTNF
Try it online
> rotates turtle, "foo" writes strings on grid. last " was elidable
1
vote
1, 2, Fizz, 4, Buzz
Turtlèd, 221 bytes
99;,:[*,l]u[*d{*u,dr}ul' l[ l]ru]u3;[ [ r]l[ ' l]ll"Fizz";]<97:>5[ (*[ r]l[ ' l]ll)(zr)"Buzz";]<104:>[ lll'0rrr[ r]l{*' l{*l}{ l}(9'0l( r"1!")(9"10!"))(8'9)(7'8)(6'7)(5'6)(4'5)(3'4 …