How to implement a multi-index dictionary?

前端 未结 11 1488
孤独总比滥情好
孤独总比滥情好 2020-12-14 00:32

Basically I want something like Dictionary, but not (as I\'ve seen here in other question) with the keys in AND, but in OR. To better explain: I

11条回答
  •  孤城傲影
    2020-12-14 01:19

    I would implement a data structure with these two dictionaries

    Dictionary> dict1;
    Dictionary> dict2;
    

    That way if you are given 1 key you have both the value and the other key as well for easy deletes and updates.

提交回复
热议问题