The description should be clearer about invalid input. Is it, that we can expect only ever to get valid input, or should we somehow react on an invalid input array? From my passing the tests without dealing with invalid input, I would expect the former. Only the instructions should say so.
C++ Translation.
The description should be clearer about invalid input. Is it, that we can expect only ever to get valid input, or should we somehow react on an invalid input array? From my passing the tests without dealing with invalid input, I would expect the former. Only the instructions should say so.