LeetCode 114. Flatten Binary Tree to Linked List in F#
URL
https://leetcode.com/problems/flatten-binary-tree-to-linked-list/
Code
https://github.com/syohex/dotnet-study/blob/master/fsharp/leetcode/problems/0114/main.fsx
type Tree =
| Leaf
| Node of int * Tree * Tree
let flatten (root: Tree) : Tr...
syohex.hashnode.dev1 min read