Problem 342: Power of Four
https://leetcode.com/problems/power-of-four/?tab=Description
思路
(num >= 0) && ((num & (num - 1)) == 0)
这两句判断的是“是否是平方”
Last updated
https://leetcode.com/problems/power-of-four/?tab=Description
(num >= 0) && ((num & (num - 1)) == 0)
这两句判断的是“是否是平方”
Last updated