#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int indx = -1;
    long long miny = 1e9;
    int minIndx = -1;
    int flag1 = 0;
    long long* arr = new long long[n];
    for (int i = 0; i < n; i++) cin >> arr[i];
    int prefixEnd = -1, suffixEnd = n;
    for (int i = 0; i < n; i++) {
      if (arr[i] < i) break;
      prefixEnd = i;
    }
    for (int i = n - 1; i >= 0; --i) {
      if (arr[i] < (n - 1) - i) break;
      suffixEnd = i;
    }
    if (suffixEnd <= prefixEnd)
      cout << "Yes\n";
    else
      cout << "No\n";
  }
}
