Data structures that can map a range of keys to a value

后端 未结 7 2042
死守一世寂寞
死守一世寂寞 2020-11-27 18:02

I am trying to find a data structure that takes in a particular value from a range of values and map it to a key.

For example, I have the following conditions:

7条回答
  •  臣服心动
    2020-11-27 18:49

    One of the way would be, use one of list implementation as value for key.

    map.put("A", ArrayList);
    

提交回复
热议问题