코딩공부 (2) 썸네일형 리스트형 [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 다음