LeetCode 104. Maximum Depth of Binary Tree in F#
URL
Maximum Depth of Binary Tree - LeetCode
Code
https://github.com/syohex/dotnet-study/tree/master/fsharp/leetcode/challenge/202302/maximum_depth_of_binary_tree/main.fsx
type Tree =
| Leaf
| Node of int * Tree * Tree
let maxDepth (root: Tre...
syohex.hashnode.dev1 min read