Range.sort
Sorts elements of the range in place, in ascending order. Applicable to ArrayRange and LinkedListRange.
Arguments
None
Return values
The sorted
range
.
Complexity
O(size*log(size))
Example
Output:
1,-20,-10,-3,-2,-1,2,3,10,20,30,-30
Sorts elements of the range in place, in ascending order. Applicable to ArrayRange and LinkedListRange.
None
The sorted
O(size*log(size))