LeetCode 263. Ugly Number in F#
URL
https://leetcode.com/problems/ugly-number/
Code
https://github.com/syohex/dotnet-study/blob/master/fsharp/leetcode/problems/0263/main.fsx
let isUgly (n: int) : bool =
let rec div divisor (n: int) =
if n % divisor <> 0 then
...
syohex.hashnode.dev1 min read