Your Submissions
You haven't submitted any code for this challenge yet. Solve the problem by passing all the test cases, and your submissions will appear here.
xxxxxxxxxx
59
var assert = require('assert');
function mergeIntervals(ranges) {
// return ranges
return result;
}
try {
assertIsFunction(mergeIntervals, '`mergeIntervals` is a function');
console.log('PASSED: ' + '`mergeIntervals` is a function');
} catch (err) {
console.log(err);
}
try {
assert.deepEqual(
mergeIntervals([
[1, 4],
[2, 5],
[7, 10],
[12, 16],
]),
[
[1, 5],
[7, 10],
[12, 16],
OUTPUT
Results will appear here.