Skip to content

Commit 94e2c64

Browse files
Merge pull request neetcode-gh#386 from UWDavidWu/main
Update 55-Jump-Game.py
2 parents 4e2b2a1 + 5381636 commit 94e2c64

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

55-Jump-Game.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ def canJump(self, nums: List[int]) -> bool:
55
for i in range(len(nums) - 2, -1, -1):
66
if i + nums[i] >= goal:
77
goal = i
8-
return True if goal == 0 else False
8+
return goal == 0

0 commit comments

Comments
 (0)