console.log(🍺);|

随枫而动

园龄:3年9个月粉丝:0关注:15

常用算法合集

常用算法整理

去除整数数组中的重复数字

import java.util.*;
public class Main {
public static Integer[] removeDuplicates(Integer[] nums){
return new LinkedHashSet<>(Arrays.asList(nums)).toArray(new Integer[0]);
}

整数数组从小到大排序

import java.util.*;
public class Main {
public static Integer[] sortSmallToLarge(Integer[] nums){
Arrays.sort(nums);
return nums;
}

本文作者:随枫而动

本文链接:https://www.cnblogs.com/fcloud/p/18419144

版权声明:本作品采用知识共享署名-非商业性使用-禁止演绎 2.5 中国大陆许可协议进行许可。

posted @   随枫而动  阅读(8)  评论(0编辑  收藏  举报
点击右上角即可分享
微信分享提示
评论
收藏
关注
推荐
深色
回顶
收起
  1. 1 Love Theme Audio artist
  2. 2 吹梦到西周 Audio artist
Love Theme - Audio artist
00:00 / 00:00
An audio error has occurred, player will skip forward in 2 seconds.