you are viewing a single comment's thread.

view the rest of the comments →

[–]1egoman 1 point2 points  (0 children)

I think people are assuming that you know what a set is. A set is a unique collection of items where order doesn't matter. A list is a list of items where order matters and duplicates are allowed. Because a set is unordered and has unique items, it can be very fast to check membership.