------
## 最终结论
```python
def canJump(nums):
    max_reachable = 0
    for i in range(len(nums)):
        if i > max_reachable:
            return False
        max_reachable = max(max_reachable, i + nums[i])
    return True

# Example usage:
# print(canJump([2,3,1,1,4]))  # Output: True
# print(canJump([3,2,1,0,4]))  # Output: False
```