Question: Write a function to sort all numbers in a list. The input of the fucntion is a list of numbers, the output is a sorted

Write a function to sort all numbers in a list. The input of the fucntion is a list of numbers, the output is a sorted list in ascending order.
Test your function with a list of at least 1 million numbers. You may randomly generate it.
Report how much time (seconds) the fuction takes to complete the sorting. You can choose to implement any sorting algorithm. However, do NOT use any existing built-in function or function from external module for sorting. Your function must be in plain code.
Write a function to sort all numbers in a list.

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 Programming Questions!