LeetCode 896. Monotonic Array in F#
URL
Monotonic Array - LeetCode
Code
https://github.com/syohex/dotnet-study/tree/master/fsharp/leetcode/problems/0896/main.fsx
let isMonotonic (nums: int list) : bool =
match nums with
| [] -> failwith "never reach here"
| _ :: [] -> true
...
syohex.hashnode.dev1 min read