[LeetCode][Python3] 17. Letter Combinations of a Phone Number
풀이 1 class Solution: def letterCombinations(self, digits: str) -> List[str]: if digits=="": return [] result=[] letter={'2':['a','b','c'],'3':['d','e','f'],'4':['g','h','i'],'5':['j','k','l'],'6':['m','n','o'],'7':['p','q','r','s'],'8':['t','u','v'],'9':['w','x','y','z']} def dfs(prefix: str,digits:str,length:int): if(length == len(digits)): result.append(prefix) return else: for i in letter[dig..