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
- leetcode
- Medium
- two pointers
- Binary
- Depth-first Search
- 이진트리
- sorting
- 재귀
- DP
- Array
- 쉬움
- Python
- hash table
- binary search
- backtracking
- string
- 미디움
- HashTable
- 중간
- linked list
- dfs
- list
- math
- tree
- 문자열
- 리트코드
- recursive
- easy
- binary tree
- matrix
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