LeetCode 1162. As Far from Land as Possible in F#
URL
As Far from Land as Possible - LeetCode
Code
https://github.com/syohex/dotnet-study/tree/master/fsharp/leetcode/problems/1162/main.fsx
let maxDistance (grid: int[,]) : int =
let n = Array2D.length1 grid
let steps = [ (-1, 0); (0, -1); (1,...
syohex.hashnode.dev1 min read