feat:完善项目
This commit is contained in:
9
utils/bit_calc.go
Normal file
9
utils/bit_calc.go
Normal file
@ -0,0 +1,9 @@
|
||||
package utils
|
||||
|
||||
// Exchange 位置交换
|
||||
func Exchange(a, b int) (int, int) {
|
||||
a = a ^ b
|
||||
b = a ^ b
|
||||
a = a ^ b
|
||||
return a, b
|
||||
}
|
Reference in New Issue
Block a user