cft
Become a CreatorSign inGet Started

LeetCode 136. Single Number in F#

LeetCode Daily Problem at 2022/02/15


user

Shohei Yoshida

4 months ago | 1 min read
Follow

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

Follow

A programmer of DeNA

A Programmer


people
Post

Upvote

Downvote

Comment

Bookmark

Share


Related Articles