Y
Hacker News
new
|
ask
|
show
|
jobs
by
gmantastic
4617 days ago
Addition and comparison will suffice:
https://gist.github.com/garethjwilliams/7202128
1 comments
deletes
4617 days ago
Awesome solution, but it breaks if you change the iteration range.
link
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