#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    vector<int> a(n);
    for (int i = 0; i < n; i++) cin >> a[i];
    int maxl = 1, maxr = 1;
    for (int i = 1; i < n; i++)
      if (a[i] >= i)
        maxl++;
      else
        break;
    for (int i = n - 2; i >= 0; i--)
      if (a[i] >= n - 1 - i)
        maxr++;
      else
        break;
    if (maxl + maxr > n)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  return 0;
}
