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