#Amazon #Medium #Coding
Last updated 5 years ago
Was this helpful?
Given a list of employees, find the common manager of two people.
This is really similar to the "lowest common ancestor in a binary tree" problem except it has more than 2 children per node.