URL Number of Beautiful Pairs - LeetCode Code https://github.com/syohex/dotnet-study/tree/master/fsharp/leetcode/problems/2748/main.fsx open System let countBeautifulPairs (nums: int list) : int = let rec gcd a b = if a % b = 0 then b else gcd b...
Markdown supported · ⌘↵ to post
No responses yet.