리트코드 (3) 썸네일형 리스트형 [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.. [LeetCode] Add Two Numbers - medium level Problem You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it as a linked list. (두개의 양수가 각각의 자리들이 역순의 리스트로 저장되어 있고, 이 둘의 합을 동일한 형태의 리스트로 반환) You may assume the two numbers do not contain any leading zero, except the number 0 itself. Example Input: (2.. 이전 1 다음