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

Trie also can be used as a hashset/map, roughly it's like hash(obj).toString is a "word" for a trie and in the leaf we store the object.

It's https://en.wikipedia.org/wiki/Hash_array_mapped_trie which used in Scala's immutableMap https://dotty.epfl.ch/api/scala/collection/immutable/HashMap...



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

Search: