Practice Problem
Count Good Nodes in Binary Tree
Difficulty: Medium
Given a binary tree root, count the number of 'good' nodes where no node on the path from root to that node has a value greater than the node's value.
Practice Problem
Difficulty: Medium
Given a binary tree root, count the number of 'good' nodes where no node on the path from root to that node has a value greater than the node's value.