분류 전체보기33 [LeetCode] 2. Add Two Numbers 풀이 0. 문제 https://leetcode.com/problems/add-two-numbers/ Add Two Numbers - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 두 개의 음이 아닌 정수를 나타내는 두 개의 비어 있지 않은 연결 목록이 제공됩니다. 숫자는 역순 으로 저장 되며 각 노드에는 단일 숫자가 포함됩니다. 두 숫자를 더하고 합을 연결 목록으로 반환합니다. #1 Input: l1 = [2,4,3], l2 = [5,6,4] Output: [7,0,.. 2022. 7. 10. [LeetCode] 14. Longest Common Prefix 풀이 0. 문제 https://leetcode.com/problems/longest-common-prefix/submissions/ Longest Common Prefix - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 문자열 배열 중에서 가장 긴 공통 접두사 문자열을 찾는 함수를 작성하기 공통 접두사가 없으면 빈 문자열을 반환 #1 Input: strs = ["flower","flow","flight"] Output: "fl" #2 Input: strs = ["d.. 2022. 7. 10. [LeetCode] 13. Roman to Integer 풀이 0. 문제 https://leetcode.com/problems/roman-to-integer/ Roman to Integer - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 ● 로마 숫자는 I, V, X, L, C, D, M의 7가지 기호로 표시 ● 로마 숫자는 일반적으로 왼쪽에서 오른쪽으로 큰 것에서 작은 것 순으로 표기 ● 4, 9는 예외 처리 ● V(5)와 X(10.. 2022. 7. 10. [LeetCode] 9. Palindrome-Number 풀이 0. 문제 https://leetcode.com/problems/palindrome-number/ Palindrome Number - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 정수가 주어지면 회문일 경우 true 회문이 아닐 경우 false를 반환한다. #1 Input: x = 121 Output: true #2 Input: x = -121 Output: false #3 Input: x = 10 Output: false 1.언어 자바스크립트(JavaScri.. 2022. 7. 10. 이전 1 ··· 5 6 7 8 9 다음