solution

Write in Java

Make a class that determines the minimum number of coins a user needs to match the original matrix to the sorted matrix below. You will also modify the input matrix to show how tall the coin stacks should be after the user is finished modifying the original matrix. Columns should be in ascending or descending order based on the highest value in the column.

The following is an example of the results for a 5 by 5 matrix.

Original Matrix (Input)
1 2 5 3 3
2 4 1 5 1
2 1 1 5 2
1 1 5 1 3
4 3 1 5 1

Sorted Matrix (Output)
1 2 5 3 3
2 4 5 5 3
2 4 5 5 3
2 4 5 5 3
4 4 4 5 1

 
"Looking for a Similar Assignment? Get Expert Help at an Amazing Discount!"
Looking for a Similar Assignment? Our Experts can help. Use the coupon code SAVE30 to get your first order at 30% off!