Tag Info

Accepted

Construct an objective function that favors the sorted permutation

I don't understand why you seem to want that computing the best value of the objective function must require sorting the array. In optimization problems (look for example at the class $\mathsf{NPO}$), ...
• 24.5k

Why does the order of the nested loops matter when solving the Coin Change problem?

Why is the working solution correct? First things first. Important things first. Let us understand why the working solution is correct first instead of finding where the wrong solution goes wrong. ...
• 35.5k