decorus-kazuma / blog.decorus.io

💁‍♂️ decorus-kazuma blog.
https://blog.decorus.io
MIT License
0 stars 0 forks source link

algorithm/leetcode/2022/04/06/leetcode-merge-intervals #8

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Leetcode - Merge Intervals

Given an array of intervals where intervals[i] = [starti, endi], merge all overlapping intervals, and return an array of the non-overlapping intervals that cover all the intervals in the input.

https://blog.decorus.io/algorithm/leetcode/2022/04/06/leetcode-merge-intervals.html

decorus-kazuma commented 2 years ago

UnionFind 로 처리할 수 있다는 점..^^