------
## 最终结论
```python
def is_sharpened_possible(n, a):
    left = 0
    right = n - 1
    
    while left < right and a[left] >= left:
        left += 1
    
    while right > left and a[right] >= (n - 1 - right):
        right -= 1
    
    return left >= right

t = int(input())
for _ in range(t):
    n = int(input())
    a = list(map(int, input().split()))
    
    if is_sharpened_possible(n, a):
        print("Yes")
    else:
        print("No")
```