Sha256: e27fb81d3c4bd283b10f84b8fec25a977c715153aca7f73552743940f665d9e3
Contents?: true
Size: 720 Bytes
Versions: 3
Compression:
Stored size: 720 Bytes
Contents
-- (gcd.rb:4) def gcd(a, b) -- (gcd.rb:18) gcd(3,5) -- (gcd.rb:6) if a > b -- (gcd.rb:6) if a > b -- (gcd.rb:10) return nil if a <= 0 -- (gcd.rb:10) return nil if a <= 0 -- (gcd.rb:12) if a == 1 or b-a == 0 -- (gcd.rb:12) if a == 1 or b-a == 0 -- (gcd.rb:15) return gcd(b-a, a) -- (gcd.rb:6) if a > b -- (gcd.rb:6) if a > b -- (gcd.rb:10) return nil if a <= 0 -- (gcd.rb:10) return nil if a <= 0 -- (gcd.rb:12) if a == 1 or b-a == 0 -- (gcd.rb:12) if a == 1 or b-a == 0 -- (gcd.rb:15) return gcd(b-a, a) -- (gcd.rb:6) if a > b -- (gcd.rb:6) if a > b -- (gcd.rb:10) return nil if a <= 0 -- (gcd.rb:10) return nil if a <= 0 -- (gcd.rb:12) if a == 1 or b-a == 0 -- (gcd.rb:12) if a == 1 or b-a == 0 -- (gcd.rb:13) return a
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rb8-trepanning-0.1.6 | test/data/trace.right |
rb8-trepanning-0.1.5 | test/data/trace.right |
rb8-trepanning-0.1.4 | test/data/trace.right |