Matching duplicate values in an array

A Dictionary uses a hash table, making the time (relatively) independent of the number of items. It is designed for high-speed lookups.

1 Like

With a dictionary you don’t have to sor it, and you could use .HasKey to see if a key already exists or not.

1 Like

good to know, maybe I should change my approach to use dicts then, thx all.

1 Like