News for hackers. Stuff that matters.
Re:Ask HN: What is your go to idiot-filter question in inter... by valbaca on Wednesday December 07, 2022 @05:21PM (#33901185)
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).
Re:Ask HN: What is your go to idiot-filter question in inter... by mathrawka on Wednesday December 07, 2022 @05:25PM (#33901218)
Go would use the value as the key and boolean or `struct{}{}` for the map value.
Re:Ask HN: What is your go to idiot-filter question in inter... by _whiteCaps_ on Wednesday December 07, 2022 @06:49PM (#33902076)
Similar in Python