Hacker News new | ask | show | jobs
by itsjzt 2168 days ago
Afaik best case of finding an element in a list is fast as anywhere else.
1 comments

Hash 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.