Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
valbaca
on Dec 7, 2022
|
parent
|
context
|
favorite
| on:
Ask HN: What is your go to idiot-filter question i...
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
on Dec 7, 2022
[–]
Go would use the value as the key and boolean or `struct{}{}` for the map value.
_whiteCaps_
on Dec 7, 2022
|
parent
[–]
Similar in Python
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: