#include <bits/stdc++.h>
using namespace std;
const int maxn = 1001010;
int a[maxn];
void solve() {
  int n;
  cin >> n;
  for (int i = 0; i < n; ++i) {
    cin >> a[i];
  }
  int cnt = 0;
  for (int i = 0; i < n and a[i] >= i; ++i, ++cnt) {
  }
  for (int i = n - 1; i >= 0 and a[i] >= n - 1 - i; --i, ++cnt) {
  }
  cout << (cnt > n ? "Yes" : "No") << endl;
}
int main() {
  int t;
  cin >> t;
  while (t--) {
    solve();
  }
}
