Bidirectional 1:1 Mapping Data Structure in Python
Bidirectional 1:1 Mapping Data Structure in Python: a task in Terminal-Lego-15k (Harbor dataset). Implement a memory-efficient, bidirectional (reversible) 1:1 mapping data structure in Python that allows fast lookups in both directions - from key to value and from value to key.
The task
Implement a memory-efficient, bidirectional (reversible) 1:1 mapping data structure in Python that allows fast lookups in both directions - from key to value and from value to key.
Part of PrimeIntellect/Terminal-Lego-15k.