Given an array of integers, sort it in non-decreasing order.
nums = array of integers
Sorted array
Example 1:
Input:
nums = [5,2,3,1]
Output:
[1,2,3,5]
Explanation:
Sorted order.
All DSA practice problems · DSA mock interview · Mock interviews by company and role · Book a 1:1 interview