4 ms·
Afaik best case of finding an element in a list is fast as anywhere else.
by itsjzt 6y ago
Afaik best case of finding an element in a list is fast as anywhere else.
- partyboat1586 6y agoHash map is O(1), List is O(N). Unless it's a really small data set the hashmap will be faster. I don't think OP wanted best case.