취업준비 (2) 썸네일형 리스트형 [LeetCode] Letter Combinations of a Phone Number - medium level Problem Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telephone buttons) is given below. Note that 1 does not map to any letters. Example Input: "23" Output: ["ad", "ae", "af", "bd", "be", "bf", "cd", "ce", "cf"]. Solution medium level의 문제의 난이도가 생각보다 변동폭이 큰 것 같다. 이 문제도 .. [LeetCode] String to Integer (atoi) - medium level LeetCode medium level 문제이지만 medium 치고는 그리 어렵지 않은 문제로 비교적 간단하게 풀이 가능한 문제입니다. 문제: 문자열을 숫자로 변환하는 atoi 함수 구현 □ Example 1: - Input: "42" - Output: 42 □ Example 2: - Input: " -42" - Output: -42 - Explanation: The first non-whitespace character is '-', which is the minus sign. Then take as many numerical digits as possible, which gets 42. □ Example 3: - Input: "4193 with words" - Output: 4193 - Explana.. 이전 1 다음