LeetCode 948. Bag of Tokens in F#
URL
https://leetcode.com/problems/bag-of-tokens/
Code
https://github.com/syohex/dotnet-study/blob/master/fsharp/leetcode/problems/0948/main.fsx
let bagOfTokensScore (tokens: int list) (power: int) : int =
let rec bagOfTokensScore' left right (tok...
syohex.hashnode.dev1 min read