#include <bits/stdc++.h>
using ll = long long;
using ull = unsigned long long;
using namespace std;
int del(int n, int a) {
  for (int i = 2; i * i <= n; i++)
    if (n % i == 0 && i != a) return i;
  return -1;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<int> a(n);
    for (int i = 0; i < n; i++) cin >> a[i];
    int p = -1, s = n;
    for (int i = 0; i < n; ++i) {
      if (a[i] < i) break;
      p = i;
    }
    for (int i = n - 1; i >= 0; --i) {
      if (a[i] < (n - 1) - i) break;
      s = i;
    }
    if (s <= p)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  return 0;
}
