Skip to content

Checking membership

Code checks whether each of 100,000 values appears in a collection of 50,000 items.

The collection is a List. What happens if it becomes a HashSet?