Hey y’all, some people have been requesting for me to cover interval problems since Meta really likes their intervals, so this time, I have a solution for Leetcode 56 Merge Intervals and its popular variant: what happens if you have to merge intervals from two interval lists, not one?
I realize there are many other interval problems (e.g. LC23) so this will be the first of many.
As a quick note, we’re starting to include the Python code in the repository since people have been requesting it.
Reference to the OG LC problem: https://leetcode.com/problems/merge-intervals/description/
Good luck on your phone screens & onsite loops.