Skip to content

Instantly share code, notes, and snippets.

@Cee
Created May 12, 2014 15:56
Show Gist options
  • Save Cee/251688393510ceb68820 to your computer and use it in GitHub Desktop.
Save Cee/251688393510ceb68820 to your computer and use it in GitHub Desktop.
public class Solution {
public int singleNumber(int[] A) {
int ret = 0;
for (int i = 0; i < A.length; i++){
ret = ret ^ A[i];
}
return ret;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment