diff --git a/src/jump_game.py b/src/jump_game.py index d517c6f..45a200f 100644 --- a/src/jump_game.py +++ b/src/jump_game.py @@ -7,4 +7,4 @@ def canJump(self, nums: list[int]) -> bool: return False max_reach = max(max_reach, i + x) - return len(nums) - 1 <= max_reach + return max_reach >= len(nums) - 1