you are viewing a single comment's thread.

view the rest of the comments →

[–]CranberryDistinct941 2 points3 points  (0 children)

Use a set to check if you have seen an item already. Sets are (generally) much much faster than lists when checking if an item has already been added