LeetCode 1448. Count Good Nodes in Binary Tree in F#
URL
https://leetcode.com/problems/count-good-nodes-in-binary-tree/
Code
https://github.com/syohex/dotnet-study/blob/master/fsharp/leetcode/problems/1448/main.fsx
type Tree =
| Leaf
| Node of int * Tree * Tree
let goodNodes (root: Tree) : int...
syohex.hashnode.dev1 min read