LeetCode 42. Trapping Rain Water in F#
URL
https://leetcode.com/problems/trapping-rain-water/
Code
https://github.com/syohex/dotnet-study/blob/master/fsharp/leetcode/problems/0042/main.fsx
let trap (height: int list) : int =
let rec heightMax height (prev: int) acc =
match hei...
syohex.hashnode.dev1 min read