LeetCode 50. Pow(x, n) in F#
URL
Pow(x, n) - LeetCode
Code
https://github.com/syohex/dotnet-study/tree/master/fsharp/leetcode/problems/0050/main.fsx
let myPow (x: double) (n: int) : double =
let rec myPow' x (n: int64) : double =
match n with
| 0L -> 1
...
syohex.hashnode.dev1 min read