Design hash table | LeetCode Discuss
Design a data structure Map<Integer, Integer>
supporting the following operations and requirements:
- add: O(1)
- delete: O(1)
- lookup: O(1)
- clear:O(1)
- iterate: O(number of elements)
Read full article from Design hash table | LeetCode Discuss
No comments:
Post a Comment