본문 바로가기

분류 전체보기33

[LeetCode] 88. Merge Sorted Array 풀이 (JS) 0. 문제 https://leetcode.com/problems/merge-sorted-array/ Merge Sorted Array - 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: nums1 = [1,2,3,0,0,0], m = 3, nums2 = [2,5,6], n = 3 Output: [1,2,2,3,5,6] Explanation: The arrays we are mergin.. 2022. 7. 24.
[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.