摘要:
原题 :https://leetcode-cn.com/problems/design-hashset/ 不使用任何内建的哈希表库设计一个哈希集合(HashSet)。 实现 MyHashSet 类: void add(key) 向哈希集合中插入值 key 。bool contains(key) 返回 阅读全文
posted @ 2021-03-14 20:59
睡觉了嘛
阅读(77)
评论(0)
推荐(0)
摘要:
原题 :https://leetcode-cn.com/problems/design-hashmap/ 不使用任何内建的哈希表库设计一个哈希映射(HashMap)。 实现 MyHashMap 类: MyHashMap() 用空映射初始化对象 void put(int key, int value) 阅读全文
posted @ 2021-03-14 20:32
睡觉了嘛
阅读(83)
评论(0)
推荐(0)