Problem: You're given an array of non-negative integers.
Let's call it sharpened if and only if there exists an integer such that and . In particular, any strictly increasing or strictly decreasing array is sharpened. For example:
- The arrays , , and are sharpened;
- The arrays , and are not sharpened.
You can do the following operation as many times as you want: choose any strictly positive element of the array, and decrease it by one. Formally, you can choose any () such that and assign .
Tell if it's possible to make the given array sharpened using some number (possibly zero) of these operations.
Input Format: The input consists of multiple test cases. The first line contains a single integer () — the number of test cases. The description of the test cases follows.
The first line of each test case contains a single integer ().
The second line of each test case contains a sequence of non-negative integers ().
It is guaranteed that the sum of over all test cases does not exceed .
Output Format: For each test case, output a single line containing "Yes" (without quotes) if it's possible to make the given array sharpened using the described operations, or "No" (without quotes) otherwise.
Note: In the first and the second test case of the first test, the given array is already sharpened.
In the third test case of the first test, we can transform the array into (decrease the first element times and decrease the last element times). It is sharpened because and .
In the fourth test case of the first test, it's impossible to make the given array sharpened.