Question: 1) Write a method in Java that will take in a list of n integers and sort them from largest to smallest. The method should

1) Write a method in Java that will take in a list of n integers and sort them from largest to smallest. The method should return a sorted list. Ensure the algorithm is O(n^2) or less, try to find the fastest and best algorithm. Include detailed comments.

2) What are some other approaches to solving this question?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!