LeetCode 1218. Longest Arithmetic Subsequence of Given Difference in F#
URL
Longest Arithmetic Subsequence of Given Difference - LeetCode
Code
https://github.com/syohex/dotnet-study/tree/master/fsharp/leetcode/problems/1218/main.fsx
open System
let longestSubsequence (arr: int list) (difference: int) : int =
arr
...
syohex.hashnode.dev1 min read