LeetCode 342. Power of Four in F#
URL
Power of Four - LeetCode
Code
https://github.com/syohex/dotnet-study/tree/master/fsharp/leetcode/challenge/202310/power_of_four/main.fsx
let isPowerOfFour (n: int) : bool =
let countBit n =
let n = (n &&& 0x55555555) + ((n >>> 1 &&& ...
syohex.hashnode.dev1 min read