Data Engineer Interview Questions

21,097 data engineer interview questions shared by candidates

Given a list of employee id and manager id pairs, and given a manager id print/return the manager hierarchy, starting at that manager. For example, given (manager_id, employee_id) as [(1,3), (2,3), (3,4)] and manager_id 4, return {4:[3], 3:[1,2]}. How would you handle the opposite direction, i.e. given an employee_id print the hierarchy of managers.
avatar

Data Engineer

Interviewed at LinkedIn

3.8
Feb 22, 2017

Given a list of employee id and manager id pairs, and given a manager id print/return the manager hierarchy, starting at that manager. For example, given (manager_id, employee_id) as [(1,3), (2,3), (3,4)] and manager_id 4, return {4:[3], 3:[1,2]}. How would you handle the opposite direction, i.e. given an employee_id print the hierarchy of managers.

Viewing 2121 - 2130 interview questions

Glassdoor has 21,097 interview questions and reports from Data engineer interviews. Prepare for your interview. Get hired. Love your job.