11 lines
134 B
Go
11 lines
134 B
Go
package q136
|
|
|
|
func singleNumber(nums []int) int {
|
|
x := 0
|
|
for _, num := range nums {
|
|
x ^= num
|
|
}
|
|
return x
|
|
}
|
|
|
|
var _ = singleNumber
|