LeetCode 134. Gas Station in F#
let canCompleteCircuit (gas: int list) (cost: int list) : int =
let rec canCompleteCircuit' gas cost pos total current =
match (gas, cost) with
| (h1 :: t1, h2 :: t2) ->
let newTotal = total + h1 - h2
let n...
syohex.hashnode.dev1 min read