Your question is Sorting an Array With Complexity. 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.
The Duke Energy Outage Map may need outage-related priority values displayed in ascending order. Given an array of integers, return a new array containing the same values in nondecreasing order.
Implement the sorting algorithm yourself without calling Python's built-in sort() or sorted() functions. The input array may contain duplicate, negative, and zero values. The original input must not be modified.
nums, a list of integers.nums, sorted in nondecreasing order.def sort_integers(nums):def sort_integers(nums):