#include <bits/stdc++.h>
using namespace std;

int main() {
	int t;
	cin >> t;
	while(t--){
		map<int,int> m;
		int n;
		cin >> n;
		for(int i=0;i<n;i++){
			int num;
			cin >> num;
			m[num]++;
		}
		int odd_count = 0;
		for(auto pr : m){
			if(pr.second % 2 != 0){
				odd_count++;
			}
		}
		if(odd_count)
			cout << "yes\n";
		else
			cout << "no\n";
	}
	return 0;
}