LeetCode 165. Compare Version Numbers in F#
URL
https://leetcode.com/problems/compare-version-numbers/
Code
https://github.com/syohex/dotnet-study/blob/master/fsharp/leetcode/problems/0165/main.fsx
let strToInt (s: string) : int =
s |> Seq.fold (fun acc c -> acc * 10 + (int c - int '0')) 0...
syohex.hashnode.dev1 min read