“Java Hashmap сложность” Ответ

Java Hashmap сложность

On the other hand, a HashMap has an average time complexity of O(1) 
  for put() , contains() and remove() operations. 
  The worst-case time complexity for those operations is O(log n) 
  since Java 8, and O(n) before that. Space-complexity wise, both
  have a complexity of O(n)
Delightful Dormouse

Java Hashmap сложность

On the other hand, a HashMap has an average time complexity of O(1) for put() , contains() and remove() operations. The worst-case time complexity for those operations is O(log n) since Java 8, and O(n) before that. Space-complexity wise, both have a complexity of O(n)
Delightful Dormouse

Ответы похожие на “Java Hashmap сложность”

Вопросы похожие на “Java Hashmap сложность”

Больше похожих ответов на “Java Hashmap сложность” по Java

Смотреть популярные ответы по языку

Смотреть другие языки программирования