add new solutions
This commit is contained in:
parent
475d438db4
commit
1433bf4850
17 changed files with 394 additions and 0 deletions
11
solutions/1/q136/solution.go
Normal file
11
solutions/1/q136/solution.go
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
package q136
|
||||
|
||||
func singleNumber(nums []int) int {
|
||||
x := 0
|
||||
for _, num := range nums {
|
||||
x ^= num
|
||||
}
|
||||
return x
|
||||
}
|
||||
|
||||
var _ = singleNumber
|
||||
Loading…
Add table
Add a link
Reference in a new issue