#include <bits/stdc++.h>
using namespace std;
long long int dp[45];
long long int a[1000006];
int main() {
  long long int mod, t, k = 0, n, i, m, x, j = 0, l, c = 0, r = 0, w, s = 0,
                        d = 0, f = 0, sum = 0, mul, mx1, mx, s1 = 10000000,
                        s2 = 0;
  cin >> t;
  while (t--) {
    d = 0;
    f = 0;
    cin >> n;
    for (i = 0; i < n; i++) {
      cin >> m;
      if (f == 0 && d <= m) {
        d++;
      } else if (f != 3) {
        if (f == 0) {
          d = min(k - 1, n - d - 1);
          f = 2;
        }
        if (d >= 0 && d <= m) {
          d--;
        } else {
          f = 3;
        }
      }
      k = m;
    }
    if (f == 3) {
      cout << "No" << endl;
    } else {
      cout << "Yes" << endl;
    }
  }
  return 0;
}
