about | help | code help+videos | done | prefs |
Return the movie with the most unique actors. You may only use 1 for loop to determine the unique actors and 1 for loop to determine the movie. mostUniqueActors(["KevinBacon", "JackNicholson", "DemiMoore", "TomCruise", "KevinBacon", "DemiMoore", "JonBonJovi", "AnnabellaSciorra", "AnnabellaSciorra", "MandyMoore", "StarkSands", "JeremyPiven"], ["AFewGoodMen", "AFewGoodMen", "AFewGoodMen", "AFewGoodMen", "DestinationAnywhere", "DestinationAnywhere", "DestinationAnywhere", "DestinationAnywhere", "ChasingLiberty", "ChasingLiberty", "ChasingLiberty", "ChasingLiberty"]) → "ChasingLiberty" mostUniqueActors(["KevinBacon", "JackNicholson", "DemiMoore", "TomCruise", "KevinBacon", "DemiMoore", "JonBonJovi", "AnnabellaSciorra", "NoName"], ["AFewGoodMen", "AFewGoodMen", "AFewGoodMen", "AFewGoodMen", "DestinationAnywhere", "DestinationAnywhere", "DestinationAnywhere", "DestinationAnywhere", "DestinationAnywhere"]) → "DestinationAnywhere" mostUniqueActors(["KevinBacon", "JackNicholson", "DemiMoore", "TomCruise", "KevinBacon", "DemiMoore"], ["AFewGoodMen", "AFewGoodMen", "AFewGoodMen", "AFewGoodMen", "DestinationAnywhere", "DestinationAnywhere"]) → "AFewGoodMen" ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 300
Copyright Nick Parlante 2017 - privacy