Skip to content

Commit 3c9ea58

Browse files
author
이호찬
committed
house-robber add missing semi colon
1 parent 39f7e8e commit 3c9ea58

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

house-robber/lhc0506.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ var rob = function(nums) {
1111
let oneBefore = 0;
1212

1313
nums.forEach(num => {
14-
const prevOneBefore = oneBefore
14+
const prevOneBefore = oneBefore;
1515
oneBefore = Math.max(prevOneBefore, twoBefore + num);
1616
twoBefore = prevOneBefore;
1717
});

0 commit comments

Comments
 (0)