/* package whatever; // don't place package name! */
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Ideone
{
{
// your code goes here
Scanner sc
= new Scanner
(System.
in); int t = sc.nextInt();
while(t-- >0){
int n = sc.nextInt();
int arr[] = new int[n], freq[] = new int[1002];
for(int i=0;i<n;i++){
arr[i] = sc.nextInt();
freq[arr[i]-1]++;
}
boolean ans = true;
for(int i=0;i<1000;i++){
if(freq[i]==0)continue;
if(freq[i]>=2){
freq[i+1]+=(freq[i]-2);
}
else {ans = false;
break;
}
}
System.
out.
println((ans
)?"Yes":"No"); }
sc.close();
}
}
LyogcGFja2FnZSB3aGF0ZXZlcjsgLy8gZG9uJ3QgcGxhY2UgcGFja2FnZSBuYW1lISAqLwoKaW1wb3J0IGphdmEudXRpbC4qOwppbXBvcnQgamF2YS5sYW5nLio7CmltcG9ydCBqYXZhLmlvLio7CgovKiBOYW1lIG9mIHRoZSBjbGFzcyBoYXMgdG8gYmUgIk1haW4iIG9ubHkgaWYgdGhlIGNsYXNzIGlzIHB1YmxpYy4gKi8KY2xhc3MgSWRlb25lCnsKCXB1YmxpYyBzdGF0aWMgdm9pZCBtYWluIChTdHJpbmdbXSBhcmdzKSB0aHJvd3MgamF2YS5sYW5nLkV4Y2VwdGlvbgoJewoJCS8vIHlvdXIgY29kZSBnb2VzIGhlcmUKCQlTY2FubmVyIHNjID0gbmV3IFNjYW5uZXIoU3lzdGVtLmluKTsKCQlpbnQgdCA9IHNjLm5leHRJbnQoKTsKCQl3aGlsZSh0LS0gPjApewoJCQlpbnQgbiA9IHNjLm5leHRJbnQoKTsKCQkJaW50IGFycltdID0gbmV3IGludFtuXSwgZnJlcVtdID0gbmV3IGludFsxMDAyXTsKCQkJZm9yKGludCBpPTA7aTxuO2krKyl7CgkJCQlhcnJbaV0gPSBzYy5uZXh0SW50KCk7CgkJCQlmcmVxW2FycltpXS0xXSsrOwoJCQl9CgkJCWJvb2xlYW4gIGFucyA9IHRydWU7CgkJ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