DSA Key Problems

Maximum Depth of Binary Tree

Given the root of a binary tree, return the number of nodes on its longest root-to-leaf path.