码迷,mamicode.com
首页 > 编程语言 > 详细

[LeetCode] 912. Sort an Array 数组排序

时间:2019-09-07 23:59:20      阅读:196      评论:0      收藏:0      [点我收藏+]

标签:output   class   ble   blog   pre   github   inpu   problem   log   



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. 1 <= A.length <= 10000
  2. -50000 <= A[i] <= 50000



Github 同步地址:

https://github.com/grandyang/leetcode/issues/912



参考资料:

https://leetcode.com/problems/sort-an-array/



LeetCode All in One 题目讲解汇总(持续更新中...)

[LeetCode] 912. Sort an Array 数组排序

标签:output   class   ble   blog   pre   github   inpu   problem   log   

原文地址:https://www.cnblogs.com/grandyang/p/11483981.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!