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.
xxxxxxxxxx49
var assert = require('assert');function leastMissingPositive(nums) { // return nums;}try { assert.equal(leastMissingPositive([3, 5, -1, 1]), 2); console.log( 'PASSED: ' + 'Expect `leastMissingPositive([3,5,-1,1])` to return `2`' );} catch (err) { console.log(err);}try { assert.equal(leastMissingPositive([5, 6, 7, 8, 9]), 1); console.log( 'PASSED: ' + 'Expect `leastMissingPositive([5,6,7,8,9])` to return `1`' );} catch (err) { console.log(err);}try {OUTPUT
Results will appear here.