#include <bits/stdc++.h>
int a[300005];
int main() {
  int N, n, i, no;
  scanf("%d", &N);
  while (N--) {
    no = 0;
    scanf("%d", &n);
    for (i = 0; i < n; i++) scanf("%d", &a[i]);
    for (i = 0; i < n; i++) {
      if (a[i] < i) break;
    }
    if (i <= n - 1) {
      if (n % 2 == 0 && n / 2 == i && a[i] == a[i - 1])
        no = 1;
      else {
        for (; i < n; i++) {
          if (a[i] < n - 1 - i) {
            no = 1;
            break;
          }
        }
      }
    }
    if (no)
      printf("No\n");
    else
      printf("Yes\n");
  }
}
