#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  int a[n];
  bool b[200];
  memset(a, 0, sizeof(a));
  memset(b, 0, sizeof(b));
  int m1 = 0, m2 = INT_MAX;
  for (int i = 0; i < (n); i++) {
    cin >> a[i];
    b[a[i]] = 1;
    m1 = max(m1, a[i]);
    m2 = min(m2, a[i]);
  }
  for (int i = m2; i <= m1; i++)
    if (!b[i]) {
      cout << ("NO") << "\n";
      return;
    }
  cout << ("YES") << "\n";
}
int main() {
  ios::sync_with_stdio(0), cin.tie(0);
  int t = 1;
  cin >> t;
  while (t--) solve();
}
