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 Reply

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

WordPress.com Logo

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

Twitter picture

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

Facebook photo

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

Google+ photo

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

Connecting to %s