dengxinyi 6 năm trước cách đây
mục cha
commit
421c0921f9
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      easy/342.power-of-four.go

+ 3 - 0
easy/342.power-of-four.go

@@ -0,0 +1,3 @@
+func isPowerOfFour(num int) bool {
+	return (num & (num-1) == 0) && (num & 0x55555555 != 0)
+}