LeetCode 342. Power of Four in F#
URL
https://leetcode.com/problems/power-of-four/
Code
https://github.com/syohex/dotnet-study/blob/master/fsharp/leetcode/problems/0342/main.fsx
let isPowerOfFour (n: int) : bool =
seq { 0 .. 15 }
|> Seq.tryFind (fun m -> System.Math.Pow(4, m)...
syohex.hashnode.dev1 min read