You like sweets so much that you decided to make sweets at your home, little do you know that ants living in your house love sweets too. There will be ‘T’ times when you decide to make sweets. Each time you will make ‘N’ types of sweets numbered from ‘1’ to ‘N’. Once you cook ‘ith’ sweet it has a freshness value ‘N’ and all the previous sweet’s freshness values decreases by 1. After cooking each sweet, you will store it in the fridge to cool down and leave. The moment you leave the fridge, ants will steal some of the sweets(might be 0 as well). Since they love fresh sweets, they will steal all the sweets with a freshness value greater than ‘N - S[i]’.
After you cooked all the ‘N’ sweets, you went to the fridge and found that some(might be 0 as well) of the sweets were missing. You have to print an array of length ‘N’ containing 1 and 0, where the ‘ith’ value will be 1 if ants stole that sweet else, it will be 0.
Note: In each test case, the first sweet has id ‘1’, the second sweet has id ‘2’ and so on.
Note: Ants will come to steal every time you cook a sweet.
Input Format-
First-line contains ‘T’, denoting the number of Test cases.
For each Test case:
The first line contains an integer ‘N’, denoting the number of sweets you will cook.
The second line contains an array ‘S’ of length ‘N’.
Output Format-
For each Test case:
Print an array of length ‘N’ containing 1 and 0, where the ‘ith’ value will be 1 if ants stole the sweet with id ‘i’ else, it will 0.
Constraints -
1<= ‘T’ <= 5
1<= ‘N’ <= 10^5
0<= S[i] <=‘N’ i ∈ (1,N)
Time Limit: 1 sec