본문 바로가기

LeetCode27

[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.
[LeetCode] 1. Two Sum 풀이 0. 문제 https://leetcode.com/problems/two-sum/ Two Sum - 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: nums = [2,7,11,15], target = 9 Output: [0,1] #2 Input: nums = [3,2,4], target = 6 Output: [1,2] #3 Input: nums = [3,3], ta.. 2022. 7. 10.