Challenge Sep-2015

Collections of Cars                                                                        Solutions

Given an arbitrary number of collections of cars, find the set of cars that is common to all collections (based on make and model):


  • Identify cars that do not exist in any other collection
  • Solve for two collections first, then if possible generalize your solution to handle any number of collections

Optional: For each collection of cars eliminate all but the most expensive instance of each make and model (add another attribute for price)

Send your solutions to  


P.S. This problem has been proposed by Michael Parish.

Leave a Reply

Please log in using one of these methods to post your comment: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s