Bidirectional Map

dictionary, java

Solution

Java doesn't have a bidirectional map in its standard library.

Use for example `BiMap<K, V>` from Google Guava .

Problem

Can you suggest a kind of map or similar data structure where we can get both the value and key from each other at equal ease. That is to say, that each may be used to find other.

Original source

Related problems