My Fast Java Solution


  • 0
            HashSet<Integer> h = new HashSet();
            for(int i : nums) h.add(i);
            return h.size() != nums.length;
        } ```

Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.