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):

CollectionsOfCarsAlso:

  • 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 DecisionManagementCommunity@gmail.com.  

Solutions:

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

Leave a comment