LeetCode 19. Remove Nth Node From End of List in F#
URL
https://leetcode.com/problems/remove-nth-node-from-end-of-list/
Code
https://github.com/syohex/dotnet-study/tree/master/fsharp/leetcode/problems/0019/main.fsx
type List =
| Leaf
| Node of int * List
let removeNthFromEnd(head: List) (n: i...
syohex.hashnode.dev1 min read