Browse Source

leetcode 1486

master
OhYee 2 years ago
parent
commit
4ece2f38b0
Signed by: OhYee
GPG Key ID: 5A9E1F63ED274FBB
  1. 7
      leetcode/1486/1486.go

7
leetcode/1486/1486.go

@ -0,0 +1,7 @@ @@ -0,0 +1,7 @@
func xorOperation(n int, start int) int {
res := 0
for i:=0; i<n; i++ {
res ^= start + 2 * i
}
return res
}
Loading…
Cancel
Save