Will a hash table be a good solution for either of those?
Determining if two of the workers in the factory have identical names, assuming we are given a list