#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int a[n];
    for (int i = 0; i < n; i++) {
      cin >> a[i];
    }
    int prefix_end = -1, suffix_end = n;
    for (int i = 0; i < n; i++) {
      if (a[i] < i) {
        break;
      }
      prefix_end = i;
    }
    for (int i = n - 1; i >= 0; i--) {
      if (a[i] < (n - 1) - i) {
        break;
      }
      suffix_end = i;
    }
    if (suffix_end <= prefix_end) {
      cout << "Yes";
    } else {
      cout << "No";
    }
    cout << endl;
  }
  return 0;
}
