Ai
1 Star 0 Fork 0

徐长贺/Leetcode

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
_912.java 541 Bytes
一键复制 编辑 原始数据 按行查看 历史
Fisher Coder 提交于 2019-05-27 01:42 +08:00 . add 912
package com.fishercoder.solutions;
import java.util.Arrays;
/**
* 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
* */
public class _912 {
public static class Solution1 {
public int[] sortArray(int[] nums) {
Arrays.sort(nums);
return nums;
}
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/isulong/Leetcode.git
git@gitee.com:isulong/Leetcode.git
isulong
Leetcode
Leetcode
master

搜索帮助