LeetCode 1431. Kids With the Greatest Number of Candies in F#

URL

Kids With the Greatest Number of Candies - LeetCode

Code

https://github.com/syohex/dotnet-study/tree/master/fsharp/leetcode/problems/1431/main.fsx

let kidsWithCandies (candies: int list) (extraCandies: int) : bool list =
    let max = List.max candies
    candies |> List.map (fun n -> n + extraCandies >= max)