Question My Solution hashset에 s를 담은 후 replace()를 통해 특정 문자를 공백처리 한 것의 길이(num)가 s.length()보다 1 작을 경우 해당 문자의 index를 return한다. class Solution { public int firstUniqChar(String s) { String t =s; Set set = new HashSet(); for(int i=0;i see ah not valid map.put(current,-1); } } int min = Integer.MAX_VALUE; for(char c: map.keySet()){ //if c is smaller than min and valid if(map.get(c)>-1 && map.get(c)