Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一组数字,其中每个数字都有一个键(例如 {"key1":1, "key2":2})。所有的键都是唯一的。存储它们的最佳数据结构是什么,以便我可以通过键搜索并有效地找到该键的值?(可能在 logN 时间内)