LeetCode 200. Number of Islands in F#
URL
https://leetcode.com/problems/number-of-islands/
Code
https://github.com/syohex/dotnet-study/blob/master/fsharp/leetcode/problems/0200/main.fsx
let numIslands (grid: char [,]) : int =
let rows = Array2D.length1 grid
let cols = Array2D.len...
syohex.hashnode.dev1 min read