LeetCode 547. Number of Provinces in F#
URL
https://leetcode.com/problems/number-of-provinces/
Code
https://github.com/syohex/dotnet-study/blob/master/fsharp/leetcode/problems/0547/main.fsx
let findCircleNum (isConnected: int list []) : int =
let rec moveNext nodes (isConnected: int li...
syohex.hashnode.dev1 min read