Greedy Algorithms - Jump Game (Can Reach End?)
Consider the following code snippet for the Jump Game problem. Identify the subtle bug that causes incorrect results on some inputs.
```python
def canJump(nums):
maxReach = 0
for i, jump in enumerate(nums):
if i >= maxReach:
return False
maxReach = max(maxReach, i + jump)
return True
```
