#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    long long int a[n];
    int ind1 = -1;
    int ind2 = -1;
    int ans = 1;
    for (int i = 0; i < n; i++) cin >> a[i];
    for (int i = 0; i < n; i++) {
      if (a[i] < i) {
        ind1 = i;
        break;
      }
    }
    for (int i = n - 1; i >= 0; i--) {
      if (a[i] < n - i - 1) {
        ind2 = i;
        break;
      }
    }
    if ((ind1 == -1 || ind2 == -1) || ind2 + 1 < ind1)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  return 0;
}
