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
相關文章
相關標籤/搜索