LeetCode 658. Find K Closest Elements in F#
URL
https://leetcode.com/problems/find-k-closest-elements/
Code
https://github.com/syohex/dotnet-study/blob/master/fsharp/leetcode/problems/0658/main.fsx
let findClosestElements (arr: int list) (k: int) (x: int) : int list =
arr
|> List.sortW...
syohex.hashnode.dev1 min read