LeetCode 24. Swap Nodes in Pairs in F#
URL
Swap Nodes in Pairs - LeetCode
Code
https://github.com/syohex/dotnet-study/tree/master/fsharp/leetcode/challenge/202305/swap_nodes_in_pairs/main.fsx
type ListNode =
| Leaf
| Node of int * ListNode
let swapPair (head: ListNode) =
let ...
syohex.hashnode.dev1 min read