LeetCode 1232. Check If It Is a Straight Line
in F#
URL
Check If It Is a Straight Line - LeetCode
Code
https://github.com/syohex/dotnet-study/tree/master/fsharp/leetcode/problems/1232/main.fsx
let checkStraightLine (coordinates: (int * int) list) : bool =
let diff (x1, y1) (x2, y2) = x2 - x1, y2 -...
syohex.hashnode.dev1 min read