3 ms·
The specification of the problem doesn’t say anything about integer size, wrap-around, and the like, so we should assume that they mean ‘mathematical integer’ w
by Someone 7y ago
The specification of the problem doesn’t say anything about integer size, wrap-around, and the like, so we should assume that they mean ‘mathematical integer’ when they say ‘integer’
One can easily hit a bug in that code for small arrays, even for an array with only 2 elements.
There also is an edge condition bug for an array of size zero.