LeetCode 1351. Count Negative Numbers in a Sorted Matrix in F#
URL
Count Negative Numbers in a Sorted Matrix - LeetCode
Code
https://github.com/syohex/dotnet-study/tree/master/fsharp/leetcode/problems/1351/main.fsx
let countNegatives (grid: int[,]) : int =
let rows = Array2D.length1 grid
let cols = Array...
syohex.hashnode.dev1 min read