java代码在swap之后加这么一句就可以了 Collections.sort(num.subList(index+1,num.size()));
点赞

相关推荐

头像
06-04 19:10
Java
点赞 评论 收藏
分享
牛客网
牛客企业服务