LeetCode 653. Two Sum IV - Input is a BST in F#
URL
https://leetcode.com/problems/two-sum-iv-input-is-a-bst/
Code
https://github.com/syohex/dotnet-study/blob/master/fsharp/leetcode/problems/0653/main.fsx
type Tree =
| Leaf
| Node of int * Tree * Tree
let findTarget (root: Tree) (k: int) :...
syohex.hashnode.dev1 min read