LeetCode/코딩 테스트 스터디 3주차9 [LeetCode] 12. Integer to Roman 풀이 (JS) 0. 문제 https://leetcode.com/problems/integer-to-roman/ Integer to Roman - 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 로마 숫자는 7가지 기호로 표시됩니다 Symbol Value I 1 V 5 X 10 L 50 C 100 D 500 M 1000 로마 숫자는 일반적으로 왼쪽에서 오른쪽으로 큰 것에서 작은 것 순으로 표기한다. 하지만 아래 6가지의 경우 오른쪽에서 왼쪽으로 작은 것에서 큰 것으로 표기되며 빼.. 2022. 7. 24. [LeetCode] 83. Remove Duplicates from Sorted List 풀이 (JS) 0. 문제 https://leetcode.com/problems/remove-duplicates-from-sorted-list/ Remove Duplicates from Sorted List - 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: head = [1,1,2] Output: [1,2] #2 Input: head = [1,1,2,3,3] Output:.. 2022. 7. 24. [LeetCode] 70. Climbing Stairs 풀이 (JS) 0. 문제 https://leetcode.com/problems/climbing-stairs/ Climbing Stairs - 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 n높이의 계단을 1또는 2스텝을 한 번에 오를 수 있다고 가정할때 top으로 올라갈 수 있는 경우의 수를 계산하는 문제 #1 Input: n = 2 Output: 2 Explanation: There are two ways to climb to the top. 1. 1 step + 1 ste.. 2022. 7. 24. [LeetCode] 69. Sqrt(x) 풀이 (JS) 0. 문제 https://leetcode.com/problems/sqrtx/ Sqrt(x) - 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: x = 4 Output: 2 #2 Input: x = 8 Output: 2 1.언어 자바스크립트(JavaScript) 2. 문제 풀이 var mySqrt = function(x) { return parseInt(Math.sqrt(x)) }; Runtime: 100 ms, faster .. 2022. 7. 24. 이전 1 2 3 다음