Domanda di colloquio di Google

Given a binary tree, write a function to determine the minimum depth from the root to the nearest leaf node.