#include <bits/stdc++.h>
using namespace std;
const long long int MaxN = 300005;
const long long int mod = 1e9 + 7;
const float pi = 3.1415926535897932384626433832795028;
long long int mcd(long long int a, long long int b) {
  if (a == 0) return b;
  return mcd(b % a, a);
}
int arr[MaxN];
void solve() {
  int N, i, j, p, q;
  cin >> N;
  for (i = 1; i <= N; i++) {
    cin >> arr[i];
  }
  p = 0, q = N + 1;
  for (i = 1; i <= N; i++) {
    if (arr[i] >= i - 1) {
      p = i;
    } else
      break;
  }
  for (i = N; i > 0; i--) {
    if (arr[i] >= N - i) {
      q = i;
    } else
      break;
  }
  if (p >= q)
    cout << "Yes\n";
  else
    cout << "No\n";
}
int main() {
  long long int t, i;
  cin >> t;
  for (i = 1; i <= t; i++) {
    solve();
  }
}
