Ed Round( Given an interface with 3 methods AddEmployee(int empid, String department); updateEmployee(int empid, String department); Collection<Integer> reportEmployees(String Department);
Anonymous
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)
Check out your Company Bowl for anonymous work chats.