#include <bits/stdc++.h>
using namespace std;
int main() {
  ios::sync_with_stdio(0);
  int t, n;
  cin >> t;
  while (t--) {
    cin >> n;
    int a[n];
    int pos = -1, f = 0;
    for (int i = 0; i < n; i++) {
      cin >> a[i];
    }
    if (n % 2 != 0)
      pos = n / 2;
    else {
      int x = a[n / 2];
      int y = a[(n - 1) / 2];
      if (x >= y)
        pos = n / 2;
      else
        pos = (n - 1) / 2;
    }
    for (int i = pos - 1; i >= 0; i--) {
      a[i] = (a[i] < a[i + 1] - 1) ? a[i] : a[i + 1] - 1;
      if (a[i] < 0) {
        f = 1;
        break;
      }
    }
    for (int i = pos + 1; i < n; i++) {
      a[i] = (a[i] < a[i - 1] - 1) ? a[i] : a[i - 1] - 1;
      if (a[i] < 0) {
        f = 1;
        break;
      }
    }
    if (f == 0)
      cout << "Yes" << endl;
    else
      cout << "No" << endl;
  }
  return 0;
}
