LeetCode 1814. Count Nice Pairs in an Array in F#
URL
Count Nice Pairs in an Array - LeetCode
Code
https://github.com/syohex/dotnet-study/tree/master/fsharp/leetcode/problems/1814/main.fsx
let rev (n: int) : int =
let rec rev' n acc =
if n <= 0 then acc else rev' (n / 10) (acc * 10 + (n ...
syohex.hashnode.dev1 min read