Design a data structure with O(1) time complexity for all functions
Probelm DescriptionDesign a data structure with O(1) time complexity for all functions: set(key, value) get(key) set_all(value) SolutionFor the general solution, the time complexity of the function