Programming Interview Question - Merge Intervals (InterviewCake#4)
Programming Interview Question - Merge Intervals
This post will explore the solutions to the question #4 of the famous website cakeinreview (here the link).
Programming Interview Question - Merge Intervals - Problem Statement
Given a list of pair of integers return a list of merged or condensed intervals.
Given for instance the following input list
your solution should return:
Your function should take care of corner cases like merging two intervals like the following in
. Give a
solution first. Then try to solve it in
.
Read More »Programming Interview Question - Merge Intervals (InterviewCake#4)