LeetCode 509. Fibonacci Number in F#
URL
https://leetcode.com/problems/fibonacci-number/
Code
https://github.com/syohex/dotnet-study/blob/master/fsharp/leetcode/problems/0509/main.fsx
let fib (n: int) : int =
let rec fib' n cache =
match n with
| 0 -> 0, cache
...
syohex.hashnode.dev1 min read