Coding Interview Questions: No. 54 - Merge Ranges
Questions: Given an array of ranges, please merge the overlapping ones. For example, four ranges [5, 13], [27, 39], [8, 19], [31, 37] (in blue in Figure1) are merged into two ranges, which are [5, 19] and [27, 39] (in green in Figure 1).
Read full article from Coding Interview Questions: No. 54 - Merge Ranges