Count Good Nodes in Binary Tree: Interactive Visualizer

DFS tracking the max value on the path from root. A node is good if its value >= max so far.