File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 3737mostCostEffective = getMostCostEffectiveSolution ( scores , costs , highScore ) ;
3838
3939// or use the more efficient function:
40- //mostCostEffective = getMostCostEffectiveSolution2(bestSolutions, costs, highScore );
40+ //mostCostEffective = getMostCostEffectiveSolution2(bestSolutions, costs);
4141
4242// display the results
4343console . log ( "Bubble Solution #" + mostCostEffective + " is the most cost effective" ) ;
8686// and use the index stored there to find the cost value of that solution.
8787// This is a little more efficient, but not quite as easy to read!
8888//
89- function getMostCostEffectiveSolution2 ( bestSolutions , costs , highScore ) {
89+ function getMostCostEffectiveSolution2 ( bestSolutions , costs ) {
9090 var cost = 100 ;
9191 var solutionIndex ;
9292 var lowCostIndex ;
You can’t perform that action at this time.
0 commit comments