3 ms·
The array is length N, and it says it contains the integers 1 through N inclusive, as in, all of them. If there were any repeats, then you'd have an array of l
by kmill 7y ago
The array is length N, and it says it contains the integers 1 through N inclusive, as in, all of them. If there were any repeats, then you'd have an array of length greater than N.
- kolbe 7y agoSeems like somewhat ambiguous semantic garbage to me. Especially when there is a much clearer three letter word to use (all) that would actually communicate the the point of the question.