The manager of the team comes over to you and tells you he needs a simple process in place to sort through the raw lap times which is currently just a list of numbers (in seconds) in an array: lap_times = [76.43, 77.92, 74.35, 80.12, 75.10, 76.43, 76.01, 75.35] You need to design an algorithm (you can use a programming language or pseudo code if you wish) to sort the lap times into ascending order. You should consider how to do it in as few lines of code as possible and using an efficient solution (given that once this goes live the list of lap times will be significantly greater data wise).
![The manager of the team comes over to you and tells you he needs a simple process in
place to sort through the raw lap times which is currently just a list of numbers (in seconds)
in an array:
lap_times = [76.43, 77.92, 74.35, 80.12, 75.10, 76.43, 76.01, 75.35]
You need to design an algorithm (you can use a programming language or pseudo code if
you wish) to sort the lap times into ascending order.
You should consider how to do it in as few lines of code as possible and using an efficient
solution (given that once this goes live the list of lap times will be significantly greater data
wise).](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fbd641789-b1c8-4fcc-b12a-ca224e1ad6e1%2Fe0b51c16-d947-4e16-a519-edaa3defaed2%2Foaggda_processed.png&w=3840&q=75)

Answer:
We have done code in C++ programming language and sort them given element in the increasing order using the merge sort
Algorithms:
Step1: This is totally based on the divide divide and conquer based
Step2: First find the mid index and run call the element form start to mid in the the first half and next mid +1 to last in the second half
Step3: Also we have initialized the two left and right array to store the element if left array element is less that the right element array then array assign to left array otherwise right array and if array element is greater that the right element array then array assign to array otherwise right array
Step4: and remaining array assign same as it
Step5: finally print the after sorted element
Step by step
Solved in 5 steps with 3 images









