Skip to content

Instantly share code, notes, and snippets.

@kwojcicki
Created December 1, 2019 22:41
Show Gist options
  • Save kwojcicki/1fbdcc6194a3fc1bc7d489346cf97f05 to your computer and use it in GitHub Desktop.
Save kwojcicki/1fbdcc6194a3fc1bc7d489346cf97f05 to your computer and use it in GitHub Desktop.
int findUniqueXOR(int[] numbers){
int result = 0;
for(int i: numbers){
result ^= i;
}
return result;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment