LeetCode 605 Can Place Flowers in F#
let canPlaceFlowers (flowerbed: int list) (n: int) : bool =
let rec canPlaceFlowers' flowerbed n prev =
if n = 0 then
true
else
match flowerbed with
| [] -> false
| 0 :: [] when prev...
syohex.hashnode.dev1 min read