LeetCode 944. Delete Columns to Make Sorted in F#
URL
https://leetcode.com/problems/delete-columns-to-make-sorted/description/
Code
https://github.com/syohex/dotnet-study/blob/master/fsharp/leetcode/problems/0944/main.fsx
let minDeletionSize (strs: string list) : int =
seq { 0 .. (strs.Head.Length - 1) }
|> Seq.map (fun i -> strs |> List.map (fun s -> s.[i]))
|> Seq.filter (fun cs -> cs <> List.sort cs)
|> Seq.length