AlgoMaster Logo

Count Good Nodes in Binary Tree

tree=[3, 1, 4, 3, null, 1, 5]
0 / 39
algomaster.io
Step:Start: a node is good if it is >= every value on its root path