Hacker News new | ask | show | jobs
by Alex3917 4149 days ago
> A common mistake is e.g. using the `in` operator with lists in Python, instead of converting the list to a set first.

Is this true even for small lists without many duplicates?

1 comments

Not really

You may be able to compromise and use an ordered list and a binary search.