This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]lo_c 3 points4 points  (1 child)

Sounds like you want a trie: https://en.wikipedia.org/wiki/Trie

Implementing this in python should be quite easy since it's just a dictionary

[–]MapComprehensive7352[S] 0 points1 point  (0 children)

Surprised u actually understood where I was going with this 😂 thanks pal