4 ms·
A set could literally be: type HashSet<K> = HashMap<K, ()>; In which case it has all the properties of a hashmap except it doesn't use values. That's what we
by leshow 8y ago
A set could literally be:
type HashSet<K> = HashMap<K, ()>;
In which case it has all the properties of a hashmap except it doesn't use values. That's what we need for this problem.