#include <bits/stdc++.h>
using namespace std;
const long long oo = (long long)1e16;
const int A = 26;
long long n, m, ID, l, nb, a, b;
long long t[300005];
long long t1[300005];
long long t2[300005];
long long dp[300005];
vector<int> v;
string s;
int main() {
  ios_base::sync_with_stdio(0);
  cin >> nb;
  while (nb--) {
    cin >> n;
    for (int i = 0; i < n; i++) cin >> t[i];
    a = n;
    for (int i = 0; i < n; i++) {
      if (t[i] < i) {
        a = i;
        break;
      }
    }
    bool test = true;
    for (int i = a - 1; i < n; i++) {
      if (t[i] < (n - 1 - i)) test = false;
    }
    if (test)
      cout << "Yes\n";
    else
      cout << "No\n";
  }
}
