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