#include <bits/stdc++.h>
using namespace std;
const int inf = (int)1e9 + 5;
int n, a[(int)1e6 + 5];
int main(void) {
  ios_base::sync_with_stdio(false), cin.tie(nullptr);
  int tc;
  cin >> tc;
  while (tc--) {
    cin >> n;
    int i;
    for (i = 0; i < n; ++i) {
      cin >> a[i];
    }
    int l = n, r = n;
    for (i = 0; i < n; ++i) {
      if (a[i] < i) {
        l = i;
        break;
      }
    }
    reverse(a, a + n);
    for (i = 0; i < n; ++i) {
      if (a[i] < i) {
        r = i;
        break;
      }
    }
    if (l + r > n)
      cout << "Yes\n";
    else
      cout << "No\n";
  }
  return 0;
}
