Your question is Coding Interview Mix. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Tell me about the coding interview mix you expect, including LeetCode-style questions and discussion of your projects.
For the LeetCode-style portion, implement an interval-merging algorithm. Given a list of integer intervals [start, end], return a new list containing all overlapping or touching intervals merged together.
Function contract: def merge_intervals(intervals): accepts a list of interval lists and returns a list of merged interval lists.
def merge_intervals(intervals):