Return to Snippet

Revision: 68761
at February 21, 2015 02:00 by adino


Initial Code
s=' '.ord;a=s%b=s/s
b.upto(s-b-b){|x|p "#{x} #{a=b+b=a}"}

Initial URL


Initial Description
Cut down another 4 characters due to requirement dropping :
space ascii code is 32, b = 32/32 => 1 and that modulo 1 is zero. 
It's just question of iterating through after that.

Initial Title
30 Fibonacci Numbers Without Using Numbers In Ruby(58)

Initial Tags


Initial Language
Ruby