Show HN: FlexDict – Deeply Nested Python Dictionaries with Ease
github.com
github.com
# in for loop:
node = trie
for char in number:
node = node.setdefault(char, {})
(from here: https://www.hackerrank.com/challenges/maximum-xor/forum)