#include <bits/stdc++.h>
using namespace std;
int main() {
  int n, t, i, ctr;
  cin >> t;
  while (t--) {
    cin >> n;
    int a[i];
    for (i = 0; i < n; i++) cin >> a[i];
    ctr = 0;
    for (i = 0; i < n; i++) {
      if (a[i] >= i || a[i] >= (n - 1 - i)) ctr++;
    }
    if (n % 2 == 0 && a[n / 2] == a[n / 2 - 1] && a[n / 2] < n / 2) ctr--;
    if (ctr != n)
      cout << "No" << endl;
    else
      cout << "Yes" << endl;
  }
}
