Return to Snippet

Revision: 68751
at February 19, 2015 05:36 by adino


Updated Code
o=(s=' '.ord)/s;a=[o^o,o]
o.upto(s-b=o+o){|x|print x,': ',(a<<a[-b]+a[-o])[-b],"\n"}

Revision: 68750
at February 19, 2015 04:51 by adino


Updated Code
o=(s=' '.ord)/s;a=[o^o,o]
(o..s-o-o).each{|x|printf "%d: %d\n",x,a[-o];a<<a[-o-o]+a[-o]}

Revision: 68749
at February 19, 2015 04:31 by adino


Initial Code
o=(s=' '.ord)/s;a=[o^o,o]
def f(a,o,s)
return if s<x=a.size
puts "#{x-o}: #{a[-o]}";f(a<<a[-o-o]+a[-o],o,s)
end;f(a,o,s-o)

Initial URL

                                

Initial Description
ruby

Initial Title
30 fibonacci number without using numbers in ruby

Initial Tags

                                

Initial Language
Ruby