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
17
var assert = require('assert');
function nextLargerNumber(nums) {
// implement this function
return nums;
}
try {
assert.deepEqual(nextLargerNumber([3, 1, 3, 4]), [4, 3, 4, -1]);
console.log(
'PASSED: assert.deepEqual(nextLargerNumber([3, 1, 3, 4]), [4, 3, 4, -1])'
);
} catch (err) {
console.log(err);
}
OUTPUT
Results will appear here.