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 9d23c3c commit 5381636Copy full SHA for 5381636
55-Jump-Game.py
@@ -5,4 +5,4 @@ def canJump(self, nums: List[int]) -> bool:
5
for i in range(len(nums) - 2, -1, -1):
6
if i + nums[i] >= goal:
7
goal = i
8
- return True if goal == 0 else False
+ return goal == 0
0 commit comments