Object-Oriented Programming · Google · Medium
Requirements Create a manager for an employee hierarchy. addEmployee(employee_id, manager_id): place an employee beneath an already-existing manager; the manager will always have been added earlier than that employee. deleteEmployee(employee_id): delete the employee identified by the given id. Account for deleting managers, deleting the CEO, and malformed hierarchies such as cycles in reporting relationships. Follow-up: every employee has a rank / seniority value. If a…
Checking your access…