[0,2,1]
[0,1,2]
[0,0,2,0]
[0,0,0,2]
package main import "sort" /** * 代码中的类名、方法名、参数名已经指定,请勿修改,直接返回方法规定的值即可 * * * @param colors int整型一维数组 * @return int整型一维数组 */ func sortColor( colors []int ) []int { sort.Ints(colors) return colors }
这道题你会答吗?花几分钟告诉大家答案吧!
扫描二维码,关注牛客网
下载牛客APP,随时随地刷题