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
15
var assert = require('assert');
function nthSmallestNumber(num) {
const stream = makeStream(20);
let current;
for (let i = 0; i <= 5; i++) {
current = stream.next().value;
console.log('Next number is ', current);
// fill in this method
}
}
nthSmallestNumber(3);
OUTPUT
Results will appear here.