#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(false), cin.tie(nullptr), cout.tie(nullptr);
  int query;
  cin >> query;
  while (query--) {
    int n;
    cin >> n;
    vector<int> v(n);
    for (int i = 0; i < n; i++) cin >> v[i];
    int l = n, r = n;
    for (int i = 0; i < n; i++) {
      if (v[i] < i) {
        l = i;
        break;
      }
    }
    reverse(v.begin(), v.end());
    for (int i = 0; i < n; i++) {
      if (v[i] < i) {
        r = i;
        break;
      }
    }
    reverse(v.begin(), v.end());
    if (l + r >= n + 1)
      cout << "Yes\n";
    else
      cout << "No\n";
  }
}
