LeetCode 823. Binary Trees With Factors in F#
URL
https://leetcode.com/problems/binary-trees-with-factors/
Code
https://github.com/syohex/dotnet-study/blob/master/fsharp/leetcode/problems/0823/main.fsx
let numFactoredBinaryTrees (arr: int []) : int =
let arr' = arr |> Array.sort
let h =...
syohex.hashnode.dev1 min read