Set<Integer> set1 = new HashSet<>(Arrays.stream(nums1).boxed().collect(Collectors.toSet())); // convert nums1 to set Set<Integer> set2 = new HashSet<>(Arrays.stream ...
Results that may be inaccessible to you are currently showing.
Hide inaccessible results