Skip to content

Instantly share code, notes, and snippets.

@minhphong306
Created March 10, 2021 16:45
Show Gist options
  • Save minhphong306/99864126b462f964b5a0a99ede4e6d24 to your computer and use it in GitHub Desktop.
Save minhphong306/99864126b462f964b5a0a99ede4e6d24 to your computer and use it in GitHub Desktop.
find_not_duplicate_number_sol3.go
func solution3(arr []int) int {
var result int
for _, item := range arr {
result = result^item
}
return result
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment