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