LeetCode-912.Sort an Array
Posted zhacai
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了LeetCode-912.Sort an Array相关的知识,希望对你有一定的参考价值。
Given an array of integers nums
, sort the array in ascending order.
Example 1:
Input: [5,2,3,1] Output: [1,2,3,5]
Example 2:
Input: [5,1,1,2,0,0] Output: [0,0,1,1,2,5]
Note:
1 <= A.length <= 10000
-50000 <= A[i] <= 50000
排序
参考https://www.cnblogs.com/zhacai/p/11011961.html
以上是关于LeetCode-912.Sort an Array的主要内容,如果未能解决你的问题,请参考以下文章