From 6edec92a39ba1d5c5be40b7cc8184e85106754ec Mon Sep 17 00:00:00 2001 From: Hakan Serce Date: Fri, 5 May 2023 18:36:39 -0700 Subject: [PATCH] Removed java.util.TreeMap from implementations java.util.TreeMap is actually an implementation of the Red-Black tree, and quite different from a hashtable, with O(logn) complexity for access operations. --- apps/website/contents/algorithms/hash-table.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/website/contents/algorithms/hash-table.md b/apps/website/contents/algorithms/hash-table.md index 6a7e43fe..d376d011 100644 --- a/apps/website/contents/algorithms/hash-table.md +++ b/apps/website/contents/algorithms/hash-table.md @@ -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) |