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

后端 未结 7 1924
死守一世寂寞
死守一世寂寞 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<Integer>);
    
    0 讨论(0)
提交回复
热议问题