Your question is O(n log n) Sorting Algorithm. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
PlayStation Network may need to order game download sizes before displaying them in a storage-management view. Implement a sorting algorithm that returns the sizes in ascending order without calling Python's built-in sorting functions.
Use merge sort or another comparison-based algorithm with guaranteed O(n log n) time complexity. The input list may be modified, but returning a new sorted list is also acceptable.
Implement sort_download_sizes(sizes).
sizes, a list of integers representing download sizes in gigabytes.sizes, sorted in nondecreasing order.sorted() or list.sort().def sort_download_sizes(sizes):