DoiT Interview Question

Find the data structure that allows to set values with O(1) complexity (Leet code),