We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fb0dab1 commit cbebb81Copy full SHA for cbebb81
climbing-stairs/anniemon.js
@@ -13,7 +13,7 @@
13
* @return {number}
14
*/
15
var climbStairs = function(n) {
16
- const memo = { 1:1, 2:2 };
+ const memo = [0, 1, 2];
17
const recurse = (n) => {
18
if(memo[n]) {
19
return memo[n];
0 commit comments