mirror of
https://github.com/yangshun/tech-interview-handbook.git
synced 2026-03-20 04:05:07 +08:00
contents(algo): remove java.util.TreeMap from Hashtable implementations (#584)
This commit is contained in:
@@ -44,7 +44,7 @@ In the case of hash collisions, there are a number of collision resolution techn
|
||||
| Language | API |
|
||||
| --- | --- |
|
||||
| C++ | [`std::unordered_map`](https://docs.microsoft.com/en-us/cpp/standard-library/unordered-map) |
|
||||
| Java | [`java.util.Map`](https://docs.oracle.com/javase/10/docs/api/java/util/Map.html). Use [`java.util.HashMap`](https://docs.oracle.com/javase/10/docs/api/java/util/HashMap.html) or [`java.util.TreeMap`](https://docs.oracle.com/javase/10/docs/api/java/util/TreeMap.html) (preferred) |
|
||||
| Java | [`java.util.Map`](https://docs.oracle.com/javase/10/docs/api/java/util/Map.html). Use [`java.util.HashMap`](https://docs.oracle.com/javase/10/docs/api/java/util/HashMap.html) |
|
||||
| Python | [`dict`](https://docs.python.org/3/tutorial/datastructures.html#dictionaries) |
|
||||
| JavaScript | [`Object`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object) or [`Map`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map) |
|
||||
|
||||
|
||||
Reference in New Issue
Block a user