@@ -0,0 +1,568 @@
+package leetcode;%0A%0Aimport java.util.HashMap;%0Aimport java.util.Map;%0A%0A/**%0A * https://leetcode.com/problems/sum-of-unique-elements/%0A */%0Apublic class Problem1748 %7B%0A    public int sumOfUnique(int%5B%5D nums) %7B%0A        Map%3CInteger, Integer%3E map = new HashMap%3C%3E();%0A        for (int num : nums) %7B%0A            map.put(num, map.getOrDefault(num, 0) + 1);%0A        %7D%0A        int answer = 0;%0A        for (Map.Entry%3CInteger, Integer%3E e : map.entrySet()) %7B%0A            if (e.getValue() == 1) %7B%0A                answer += e.getKey();%0A            %7D%0A        %7D%0A        return answer;%0A    %7D%0A%7D%0A

Solve problem 1748