#include <bits/stdc++.h>
using namespace std;
int main() {
  int T;
  cin >> T;
  while (T--) {
    int n;
    cin >> n;
    int a[n];
    bool ok = true;
    bool f = true;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
      if (!ok) continue;
      if (f && a[i] < i) {
        f = false;
      }
      if (!f && a[i] < n - i - 1) ok = false;
    }
    if (n % 2 == 0 && a[n / 2] == (n / 2 - 1) && a[n / 2 - 1] == (n / 2 - 1))
      ok = false;
    if (ok)
      cout << "Yes\n";
    else
      cout << "No\n";
  }
  return 0;
}
