Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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).


Go would use the value as the key and boolean or `struct{}{}` for the map value.


Similar in Python




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: