#include <bits/stdc++.h>
#define FAST std::ios_base::sync_with_stdio(false);cin.tie(0);cout.tie(0);
#define hell 1000000007
#define pb push_back
#define endl "\n"
#define rep(i, s, n)    for(int i = s; i < (n); ++i)
#define F first
#define S second 
#define ll long long
#define sz(a) a.size()
#define pii std::pair<int, int> 
#define pll std::pair<ll, ll>  
#define vi vector<int>  
#define vl vector<ll>
#define vvi vector<vi > 
#define vii vector<pii >
#define vll vector<pll >
#define INF INT_MAX
#define inf 9e18
#define N int(2e5+5)
#define mod 998244353
 
using namespace std;
int n,a[N],sum[N];
void solve()
{
	rep(i,0,n+1)sum[i]=0;
	rep(i,1,n+1)
	{
		if(a[i])sum[i]+=1,sum[max(0,i-a[i])]-=1;
	}
	for(int i=n-1;i>=0;i--)sum[i]=sum[i+1]+sum[i];
	rep(i,1,n+1)cout<<(sum[i]?1:0)<<' ';
}
int main()
{
	int test=1;
	cin>>test;
	while(test--)
	{
		cin>>n;
		rep(i,1,n+1)cin>>a[i];
		solve();
		cout<<endl;
	}
	return 0;
}