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 70ff4ae commit d9744f4Copy full SHA for d9744f4
1 file changed
house-robber/soobing3.ts
@@ -7,4 +7,4 @@ function rob(nums: number[]): number {
7
dp[i] = Math.max(dp[i-1], dp[i-2] + nums[i]);
8
}
9
return dp[nums.length - 1];
10
-};
+};
0 commit comments