-
LeetCode - 56. Merge Intervals알고리즘/알고리즘 문제 복기 2021. 4. 1. 09:15
leetcode.com/problems/merge-intervals/
Merge Intervals - 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
Answer1
정렬을 하고 난 뒤
c_start = current_start
c_end = current_end
p_start = previous_start
p_end = previous_end로 해서
값을 비교하여 배열에 집어넣었다.
'알고리즘 > 알고리즘 문제 복기' 카테고리의 다른 글
Leet Code - 64. Minimum Path Sum (0) 2021.04.04 LeetCode - 62. Unique Path (0) 2021.04.02 LeetCode - 49.Group Anagram (0) 2021.04.01 Leet Code - 48. Rotate Image (0) 2021.03.30 LeetCode - 46. Permutation (0) 2021.03.29