Skip to content

Commit 1269ea6

Browse files
committed
Typo: 오타 수정
1 parent 5168b04 commit 1269ea6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jump-game/HC-kang.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ function canJump(nums: number[]): boolean {
99
for (let i = 0; i < nums.length; i++) {
1010
if (i > max) return false;
1111
max = Math.max(max, i + nums[i]);
12-
if (max >= nums.length) return true;
12+
if (max >= nums.length - 1) return true;
1313
}
1414

1515
return false;

0 commit comments

Comments
 (0)