B. Assigning to Classeshttps://codeforces.com/contest/1300/problem/B
#include<algorithm>
#include<iostream>
using namespace std;
int a[10000000];
int main(){
int s;
cin>>s;
while(s--){
int n;
cin>>n;
int m=2*n;
for(int i=0;i<m;i++){
cin>>a[i];
}
sort(a,a+m);
int ans;
ans=(a[n-1]-a[n]);
cout<<ans<<endl;
}return 0;}