#include <bits/stdc++.h>   using namespace std;   int main() {     ios_base::sync_with_stdio(false), cin.tie(NULL), cout.tie(NULL);     long long TC = 1;     cin >> TC;     while (TC--) {       int n, f = 1, c = 0;       cin >> n;       int a[n], feq[110] = {0};       for (int i = 0; i < n; i++) {         cin >> a[i];         feq[a[i]]++;       }       sort(a, a + n);       for (int i = 0; i < n - 1; i++) {         if (a[i + 1] - a[i] > 1) f = 0;       }       if (f)         cout <<  YES n ;       else         cout <<  NO n ;     }     return 0;   }   