#include <bits/stdc++.h>
using namespace std;
const int maxn = 3e5 + 7;
int arr[maxn], L[maxn], R[maxn], n;
void solve() {
  cin >> n;
  for (int i = 1; i <= n; i++) {
    cin >> arr[i];
  }
  L[0] = 1, R[n + 1] = 1;
  for (int i = 1; i <= n; i++) {
    if (arr[i] >= i - 1) {
      L[i] = L[i - 1];
    } else {
      L[i] = 0;
    }
  }
  for (int i = n; i >= 1; i--) {
    if (arr[i] >= n - i) {
      R[i] = R[i + 1];
    } else {
      R[i] = 0;
    }
  }
  for (int i = 1; i <= n; i++) {
    if (L[i] && R[i]) {
      cout << "Yes" << endl;
      return;
    }
  }
  cout << "No" << endl;
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0), cout.tie(0);
  int test = 1;
  cin >> test;
  while (test--) {
    solve();
  }
  return 0;
}
