#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  int mi = INT_MAX;
  int ma = 0;
  int a[n + 1];
  for (int i = 1; i <= n; i++) {
    cin >> a[i];
    if (a[i] < i - 1) mi = min(i, mi);
    if (a[i] < n - i) ma = max(i, ma);
  }
  if (ma + 1 <= mi - 1)
    cout << "Yes" << endl;
  else
    cout << "No" << endl;
}
int main() {
  int t;
  cin >> t;
  while (t--) {
    solve();
  }
}
