#include <bits/stdc++.h>
using namespace std;
const long long mod = 1e9 + 7;
const int maxn = 1e6 + 9;
long long n, i, t, j, a[maxn], pivot1, pivot2, b;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cin >> t;
  while (t--) {
    b = 0;
    cin >> n;
    pivot2 = 0;
    pivot1 = n + 1;
    for (i = 1; i <= n; i++) cin >> a[i];
    for (i = 1; i <= n; i++) {
      if (a[i] >= i - 1)
        pivot2++;
      else
        break;
    }
    for (i = n; i >= 1; i--) {
      if (a[i] >= b) {
        pivot1--;
        b++;
      } else
        break;
    }
    if (pivot2 >= pivot1)
      cout << "Yes\n";
    else
      cout << "No\n";
  }
}
