목록HashSet (1)
today_is

작성한 코드 import java.util.*;class Solution { public boolean solution(String[] phone_book) { boolean answer = true; HashMap map = new HashMap(); for(String str : phone_book) { map.put(str, 1); } for(String str : phone_book) { for(int i=1; i 한줄씩 해석해보기 answer는 true로 초기화 HashMap은 key(String) , value(Integer) 형태로 만든다..
카테고리 없음
2024. 6. 4. 17:39