LeetCode 413. Arithmetic Slices in F#
URL
https://leetcode.com/problems/arithmetic-slices/
Code
https://github.com/syohex/dotnet-study/blob/master/fsharp/leetcode/problems/0413/main.fsx
let numberOfArithmeticSlices (nums: int list) : int =
let countSlices count =
if count < 3...
syohex.hashnode.dev1 min read