LeetCode 235. Lowest Common Ancestor of a Binary Search Tree in F#
URL
https://leetcode.com/problems/lowest-common-ancestor-of-a-binary-search-tree/
Code
https://github.com/syohex/dotnet-study/blob/master/fsharp/leetcode/problems/0235/main.fsx
type Tree =
| Leaf
| Node of int * Tree * Tree
let lowestCommonA...
syohex.hashnode.dev1 min read