Find the minimum depth of a binary tree. (follow up: maximum depth)
Anonymous
I used breadth first search to find the shallowest node without children, passing the node and its current depth as a tuple into a queue.
Check out your Company Bowl for anonymous work chats.