All different

Exercise 3.4

Design and analyze an algorithm that uses a hash table to check that all the elements of a list are different.