Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
valbaca
· 3y ago · 0 comments
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).
Comments
[–]
mathrawka
3y ago
Go would use the value as the key and boolean or `struct{}{}` for the map value.
[–]
_whiteCaps_
3y ago
Similar in Python