>_
merge.cs
C# 10.0
Not run yet

+ 8 hidden

Input
intervals = [[4, 7], [1, 3], [6, 9], [12, 15]]
Expected
[[1, 3], [4, 9], [12, 15]]

[4, 7] and [6, 9] share 6 to 7, so they become [4, 9]. The result is sorted by start even though the input is not.