摘要: 给定一个有序数组,通过代码处理,最后数组中元素最多出现一次,并返回处理后数组的长度,比如[1,1,1,2,2,3,3,3],处理后为:[1,2,3],返回长度为:3 class test{ public int arrayLength(int[] arr){ if(arr.length == 0){ 阅读全文
posted @ 2019-10-31 22:35 向日葵班学霸 阅读(354) 评论(0) 推荐(0)