로딩
요청 처리 중입니다...

JAVA_LeetCode 17_Letter Combinations of a Phone Number

 JAVA_LeetCode 17_Letter Combinations of a Phone Number

JAVA_LeetCode 17_Letter Combinations of a Phone Number 풀이 class Solution { // hashmap에 번호별 문자열을 정하기 private static final Map map = new HashMap(Map.of( '1', "", '2', "abc", '3', "def", '4', "ghi", '5', "jkl", '6', "mno", '7', "pqrs", '8', "tuv", '9', "wxyz" )); public List letterCombinations(String digits) { if(digits == null || digits.length() == 0) return new ArrayList(); List list = new ArrayList(); // 재귀로 다음 문자를 시도한다. check(digits, 0, new StringB...