They asked Following question --
You have to write a full code including test cases and all. But the question is --
Say you have n employees, and each of them could be in one more sub deapartement. Each sub department is part of another departemnt. Find the common department of two employees.
Something like finding LCA with n children tree
Comments (3)


