Skip to main content
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
Results tagged with
Search options not deleted user 19349

Code-golf is a competition to solve a particular problem in the fewest bytes of source code.

1 vote

Sinusoidal text

Python 2, 172 bytes This isn't as good as Alex L's answer, but it's pretty close. Takes input from standard input and works best in a .py file. l=map(int,bin(9960000)[2:]);l+=[-c for c in l];s=6;o=[ …
Alex Van Liew's user avatar
3 votes

Is 7 l8r than 9? (Is seven later than nine?)

Python 2, 88 characters a=raw_input().split('-');print-cmp(*(map(ord,s.rjust(max(map(len,a)),'\0'))for s in a)) cmp doesn't do the right thing when you have two different length strings, so I have …
Alex Van Liew's user avatar
7 votes

ASCII connected hexagons

Python 2, 219 207 chars b=bytearray(' ');h=['__ ','/ \\','\\__/'];k=range;x=input();g=[b*50for _ in k(50)] for i in k(x): c=i*3%48+1;r=(i*3+1)/48*2+i%2 for m in k(i>15,3):n=m==0;g[r+m][c+n:c+4-n]= …
Alex Van Liew's user avatar