A cool problem I just came up with...
given the following where x represents the amount of numbers and y represents the maximum number, return a list that has a length of x where every number is less than y. You can assume for this problem that x will never be greater than y:
Code:
function(x,y) {
return list
}
For example...
function(10, 10) would return [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
That would be the only valid output give those parameters in this problem.