LeetCode 105. Construct Binary Tree from Preorder and Inorder Traversal in F#
URL
https://leetcode.com/problems/construct-binary-tree-from-preorder-and-inorder-traversal/
Code
https://github.com/syohex/dotnet-study/blob/master/fsharp/leetcode/problems/0105/main.fsx
type Tree =
| Leaf
| Node of int * Tree * Tree
let bu...
syohex.hashnode.dev1 min read