Team8 interview question

1.What is the difference between hashset and Hashmap? 2. Implement a hashmap with a new functionality "setAll" in o(1) time complexity that supports the rest of the map functinality: set in o(1) and get in o(1)