LeetCode 1091. Shortest Path in Binary Matrix
in F#
URL
Shortest Path in Binary Matrix - LeetCode
Code
https://github.com/syohex/dotnet-study/tree/master/fsharp/leetcode/challenge/202306/shortest_path_in_binary_matrix/main.fsx
let shortestPathBianryMatrix (grid: int[,]) : int =
let steps = [ (-1, ...
syohex.hashnode.dev1 min read