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