Google Bangalore Phone Screen SDE-2
Anonymous User
1742

Current Job - SDE-2 at one of FAN companies
Total experience as software developer - 4 years
Location - Bangalore, India

I recently appeared for phone screen. Here is my experience of first round.

I was asked two questions -

  1. Relation between 2 animals is given.
    A is child of B
    C is child of B
    A is child of D

An animal can be child of 0 to 2 parents. With this given data, find out if two animals are related to each other.
Follow up question was - Maternal side animals, should not be related to patrernal side family.

I was asked to code this problem.

  1. How will you implement organizational chart? Implement two methods -
    isPeer - Should return true if two employees have same managers.
    isManager - should return true if manager is management chain of given employee.
Comments (4)