mirror of
https://github.com/TheAlgorithms/Ruby
synced 2024-12-26 21:58:56 +01:00
Rename climbing-stairs.rb to climbing_stairs.rb
This commit is contained in:
parent
5a2156d0ce
commit
4a38db0764
1 changed files with 1 additions and 1 deletions
|
@ -55,4 +55,4 @@ def recurse(n, memo)
|
||||||
return memo[n] if memo[n]
|
return memo[n] if memo[n]
|
||||||
|
|
||||||
memo[n] = recurse(n - 1, memo) + recurse(n - 2, memo)
|
memo[n] = recurse(n - 1, memo) + recurse(n - 2, memo)
|
||||||
end
|
end
|
Loading…
Reference in a new issue