3 ms·
> 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 witho
by Alex3917 12y 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?
- raverbashing 12y agoNot really You may be able to compromise and use an ordered list and a binary search.