Domanda di colloquio di US Foods

Describe the characteristics of a Set, List, and Hashmap in Java

Risposta di colloquio

Anonimo

11 nov 2017

List - O(1) insertion, O(n) lookup, repeats allowed Set - same as list but no repeats HashMap - O(1) insertion, O(1) average lookup O(n) worst case lookup repeat values but no keys