#include <bits/stdc++.h>
using namespace std;
int main() {
  int T0;
  cin >> T0;
  for (int _ = 0; _ < T0; _++) {
    int n;
    cin >> n;
    int a[n];
    for (int i = 0; i < n; i++) {
      cin >> a[i];
    }
    bool f = 1;
    for (int i = 0; f && i < (n + 1) / 2; i++) {
      if (a[i] < i) f = 0;
    }
    for (int i = (n + 1) / 2; f && i < n; i++) {
      if (a[i] < n - 1 - i) f = 0;
    }
    if (!(n % 2) && a[n / 2 - 1] == a[(n) / 2] && a[n / 2] == n / 2 - 1) f = 0;
    if (f)
      cout << "Yes\n";
    else
      cout << "No\n";
  }
  return 0;
}
