#include <bits/stdc++.h>
using namespace std;
int main() {
  long long int t;
  cin >> t;
  while (t--) {
    long long int n;
    cin >> n;
    long long int a[n];
    for (int i = 0; i < n; ++i) cin >> a[i];
    long long int j = 0, k = 0, z = -1, x = n;
    for (int i = 0; i < n; ++i) {
      if (a[i] >= j) {
        j++;
        z = i;
      } else
        break;
    }
    for (int i = n - 1; i >= 0; --i) {
      if (a[i] >= k) {
        k++;
        x = i;
      } else
        break;
    }
    if (z >= x) {
      cout << "Yes\n";
    } else
      cout << "No\n";
  }
  return 0;
}
