Skip to content

Commit 89d9452

Browse files
committed
removed extra parameter on getMostCostEffectiveSolution2
1 parent b84c8c5 commit 89d9452

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

chapter4/bubbles2.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
mostCostEffective = 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
4343
console.log("Bubble Solution #" + mostCostEffective + " is the most cost effective");
@@ -86,7 +86,7 @@
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;

0 commit comments

Comments
 (0)