LeetCode 1137. N-th Tribonacci Number in F#
URL
N-th Tribonacci Number - LeetCode
Code
https://github.com/syohex/dotnet-study/tree/master/fsharp/leetcode/challenge/202404/nth_tribonacci_number/main.fsx
let tribonacci (n: int) : int =
let rec tribonacci' i n prev1 prev2 prev3 =
if i...
syohex.hashnode.dev1 min read