euler/ruby/euler015.rb

10 lines
116 B
Ruby
Raw Normal View History

2014-11-20 22:20:39 +00:00
require_relative 'euler'
2014-11-20 22:20:39 +00:00
def lattice_paths(size)
(2*size).choose(size)
end
2014-11-20 22:20:39 +00:00
def solution
lattice_paths(20)
end