Wissen Infotech Interview Question

Ed Round( Given an interface with 3 methods AddEmployee(int empid, String department); updateEmployee(int empid, String department); Collection<Integer> reportEmployees(String Department);

Interview Answers

Anonymous

May 12, 2020

Initially i used Hashset to store Employee obj. But it caused reportemployees method to have O(n). Later i used HashMap to overcome it and modify it to O(1)

8

Anonymous

Jun 16, 2020

Companies are just taking the interviews, not for selection & interviewers here take interviews to show their contribution for company's growth & that's all is fake.

6

Anonymous

Jul 7, 2020

You needed to have 2 hashmaos. 1. Emp_id --> Employee Object map 2. Dept_Name --> List map This way all the operations will in O(1)

1