AlgoDaily Solution
1Locked, only available for premium members.
Community Solutions
Community solutions are only available for premium users.
Access all course materials today
The rest of this tutorial's contents are only available for premium members. Please explore your options at the link below.
xxxxxxxxxx
17
var assert = require('assert');
function missingInUnsorted(arr, lowerBound, upperBound) {
// fill in this method
return arr;
}
try {
assert.equal(missingInUnsorted([2, 5, 1, 4, 9, 6, 3, 7], 1, 9), 8);
console.log(
'PASSED: missingInUnsorted([ 2, 5, 1, 4, 9, 6, 3, 7 ], 1, 9) should return 8'
);
} catch (err) {
console.log(err);
}
OUTPUT
Results will appear here.