Created
March 10, 2021 16:45
-
-
Save minhphong306/99864126b462f964b5a0a99ede4e6d24 to your computer and use it in GitHub Desktop.
find_not_duplicate_number_sol3.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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