LeetCode 24. Swap Nodes in Pairs in F#
URL
https://leetcode.com/problems/swap-nodes-in-pairs/
Code
https://github.com/syohex/dotnet-study/blob/master/fsharp/leetcode/problems/0024/main.fsx
type LinkedList =
| Empty
| ListNode of int * LinkedList
let rec swapPair (node: LinkedList...
syohex.hashnode.dev1 min read