Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | |||||
3 | 4 | 5 | 6 | 7 | 8 | 9 |
10 | 11 | 12 | 13 | 14 | 15 | 16 |
17 | 18 | 19 | 20 | 21 | 22 | 23 |
24 | 25 | 26 | 27 | 28 | 29 | 30 |
31 |
Tags
- 재귀
- backtracking
- Medium
- sorting
- 중간
- easy
- linked list
- matrix
- list
- binary search
- 리트코드
- string
- binary tree
- tree
- DP
- dfs
- two pointers
- hash table
- math
- Python
- 이진트리
- Depth-first Search
- Binary
- 미디움
- 쉬움
- recursive
- 문자열
- leetcode
- HashTable
- Array
Archives
- Today
- Total
목록sorting (9)
부부의 코딩 성장 일기
LeetCode 88(Merge Sorted Array, Python)
1. 문제 링크 https://leetcode.com/problems/merge-sorted-array/ 2. 문제 설명 오름차순 정수로 구성된 두 array nums1, nums2와, 각 array의 개수를 m,n이라고 할 때, nums1, nums2를 오름차순 순서로 merge한 list를 반환 전제조건 "in-place" return하는 list는 nums1에 store해야 하며, 결과적으로 nums의 길이는 m+n이 됨 예시1) nums1 = [1,2,3,0,0,0] m=3, nums2 = [2,5,6] n= 3 → [1,2,2,3,5,6] 반환 예시2) nums1 = [1] m=1, nums2 = [] n= 0 → [1] 반환 3. 처음 풀이 nums1의 m+1~m+n 자리에 nums2 elem..
카테고리 없음
2023. 11. 13. 19:00