#include <bits/stdc++.h>
using namespace std;
int solve() {
  int n;
  cin >> n;
  vector<int> v(n);
  for (auto &i : v) cin >> i;
  int x = -1;
  int y = n;
  for (int i = 0; i < n; i++) {
    if (v[i] < i) break;
    x = i;
  }
  for (int i = n - 1; i >= 0; i--) {
    if (v[i] < n - i - 1) break;
    y = i;
  }
  if (y <= x) return 1;
  return 0;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  int t;
  cin >> t;
  while (t--) {
    if (solve())
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
}
