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
25
var assert = require('assert');
function getRadius(houses, lamps) {
// fill this in
return radius;
}
console.log(getRadius([1, 2, 3], [2]));
try {
assert.equal(getRadius([1, 2, 3], [2]), 1);
console.log('PASSED: ' + 'Expect `getRadius([1,2,3],[2])` to return `1`');
} catch (err) {
console.log(err);
}
try {
assert.equal(getRadius([2, 3, 8], [2]), 6);
console.log('PASSED: ' + 'Expect `getRadius([2,3, 8], [2])` to return `6`');
} catch (err) {
console.log(err);
}
OUTPUT
Results will appear here.