LeetCode 136. Single Number in F#
LeetCode Daily Problem at 2022/02/15
Shohei Yoshida
2 years ago | 1 min read
URL
https://leetcode.com/problems/single-number/
Code
https://github.com/syohex/dotnet-study/blob/master/fsharp/leetcode/problems/0136/main.fsx
let singleNumber (nums: int list) : int =
nums |> List.reduce (fun a b -> a ^^^ b)
Upvote
Created by
Shohei Yoshida
A Programmer
Post
Related Articles