Y
Hacker News
new
|
ask
|
show
|
jobs
by
deletes
4617 days ago
Awesome solution, but it breaks if you change the iteration range.
1 comments
gmantastic
4617 days ago
Yeah, you're stuck with counting up from 1, although you could tweak it to suppress the output prior to a starting point.
link
deletes
4617 days ago
Here is my C solution for arbitrary positive range:
http://ideone.com/a0EdtS
link
gmantastic
4616 days ago
Nice, I get it. Here's mine tweaked - not so clever:
https://gist.github.com/garethjwilliams/7210264
link