LeetCode 538. Convert BST to Greater Tree in F#
URL
https://leetcode.com/problems/convert-bst-to-greater-tree/
Code
https://github.com/syohex/dotnet-study/blob/master/fsharp/leetcode/problems/0538/main.fsx
type Tree =
| Leaf
| Node of int * Tree * Tree
let convertBST (root: Tree) =
le...
syohex.hashnode.dev1 min read