4 ms·
Finding unique values (i.e. Deduplicating) using a Set/HashSet; hell, even just using a HashMap with boolean keys would give a passing grade (esp in languages
by valbaca 4y ago
Finding unique values (i.e. Deduplicating) using a Set/HashSet; hell, even just using a HashMap with boolean keys would give a passing grade (esp in languages like Go where that's how it's done).
- mathrawka 4y agoGo would use the value as the key and boolean or `struct{}{}` for the map value.
- _whiteCaps_ 4y agoSimilar in Python