LeetCode 869. Reordered Power of 2 in F#
URL
https://leetcode.com/problems/reordered-power-of-2/
Code
https://github.com/syohex/dotnet-study/blob/master/fsharp/leetcode/problems/0869/main.fsx
let reorderedPowerOf2 (n: int) : bool =
let rec toDigitsStr n acc =
if n = 0 then
...
syohex.hashnode.dev1 min read