LeetCode 869. Reordered Power of 2 in F#
URL
Reordered Power of 2 - LeetCode
Code
dotnet-study/fsharp/leetcode/challenge/202508/reordered_power_of_2/main.fsx at master · syohex/dotnet-study
let reorderedPowerOf2 (n: int) : bool =
let toSortedBits n = n |> string |> Seq.sort |> Seq.toLis...
syohex.hashnode.dev1 min read