Sha256: b5eccd98e8765f1fcf48269e47576bf145f9bd92c4043f773c4e0c663bbd03a8

Contents?: true

Size: 199 Bytes

Versions: 4

Compression:

Stored size: 199 Bytes

Contents

def tak(x:fixnum, y:fixnum, z:fixnum)
  unless y < x
    z
  else
    tak( tak(x-1, y, z),
         tak(y-1, z, x),
         tak(z-1, x, y))
  end
end

i = 0
while i<1000
  tak(24, 16, 8)
  i+=1
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
mirah-0.0.4-java examples/tak.mirah
duby-0.0.3-java examples/tak.duby
duby-0.0.2-java examples/tak.duby
duby-0.0.1 examples/tak.duby