LeetCode 222. Count Complete Tree Nodes in F#
URL
https://leetcode.com/problems/count-complete-tree-nodes/
Code
https://github.com/syohex/dotnet-study/blob/master/fsharp/leetcode/problems/0222/main.fsx
type Tree =
| Leaf
| Node of int * Tree * Tree
let rec countNodes (root: Tree) : int ...
syohex.hashnode.dev1 min read