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 |
A competition to solve a particular problem through the usage and manipulation of strings.
1
vote
How to randomize letters in a word
Coffee-script: 76 91 Bytes
f=(a)->a.length>1&&a[0]+(a.split('')[1..-2].sort ()->.5-Math.random()).join('')+a[-1..]||a
Wow, I like this language already.
2
votes
Please release me!
Coffee-script: 77 67 Bytes
f=(p,i)->((z<i&&v||z==i&&~~v+1||0)for v,z in p.split '.').join '.'
Woot! Time for cake and coffee for the beta release.
Thanks to @ven and @Cyoce I shaved 10 Bytes!
1
vote
"Hello, World!"
JSON, 16 bytes
"Hello, World!"
Apparently golfing doesn't need to be Turing-complete. Someone mentioned a meta-post but I took their word for it. And hey, this is the closest to STDOUT there is in JS …
1
vote
Build me a brick wall!
Python 2, 46 bytes
import textwrap as t;print t.fill('_|__'*175)
I was going to do an exec loop similar to @xnor's one alternate solution but he/she got to it before me. I guess I'll just have to let …
1
vote
2D Dungeon Crawler
Coffee-script: 580 Bytes
I've squeezed everything I could out of this particular algorithm and my tired brain. I need a holiday.
C=console
e='length'
N=null
f=(S)->
x=y=X=Y=N
q=(c,v)->
…