Leetcode——442. 数组中重复的数据(Java)

代码如下 class Solution { public List<Integer> findDuplicates(int[] nums) { List<Integer> rs = new ArrayList<>(); for(int i = 0; i < nums.length; i ++){ if(nums[Math.abs(num
相关文章
相关标签/搜索