#include <bits/stdc++.h>
using namespace std;
int main() {
  int cases;
  cin >> cases;
  for (int tt = 0; tt < cases; tt++) {
    int n;
    cin >> n;
    vector<int> v(n);
    for (int i = 0; i < n; i++) {
      cin >> v[i];
    }
    int ind1 = 0, ind2 = n - 1;
    for (int i = 0; i < n; i++) {
      if (i <= v[i]) {
        ind1 = i;
      } else {
        break;
      }
    }
    for (int i = n - 1; i >= 0; i--) {
      int val = n - 1 - i;
      if (v[i] >= val) {
        ind2 = i;
      } else {
        break;
      }
    }
    if (ind1 >= ind2) {
      cout << "Yes" << endl;
    } else
      cout << "No" << endl;
  }
}
