cft

LeetCode 136. Single Number in F#

LeetCode Daily Problem at 2022/02/15


user

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


user
Created by

Shohei Yoshida

A Programmer


people
Post

Upvote

Downvote

Comment

Bookmark

Share


Related Articles