Notice
Recent Posts
Recent Comments
Link
목록merge (1)
허허의 오늘은 뭐 먹지?
[leetcode] 56. Merge Intervals
겹치는 구간을 합치는 문제입니다. 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 이 문제의 핵심은 처리해야 할 구간 배열에 대해 정렬을 먼저 하는 것입니다. 시작 시간을 기준으로 입력된 값을 정렬합니다. 먼저 병합된 결과값을 저장하는 변수를 선언하고 정렬된 배열의 전체를 처음부터 탐색합니다. 만약에 병합된 결과값의 마지막으로 들어간 값의 종료시간보다 탐색 중인 ..
SW/알고리즘
2021. 2. 28. 15:59