This comment is hidden because it contains spoiler information about the solution
Description could be improved by mentioning that there is no set length of contiguous array, just try them all.
What are we exactly supposed to do?
Clojure version has no random tests.
I would say, the main task was incorrectly written. Basically if you go the way how it is done in best clever solution, you just return a max value, but that is not a maximum range, instead it is just brutal mathematics to get maximum value of a range of numbers.
The way it should be written is "Return new array, which represents a range of maximum sum." and tests should be like this:
Test.assertEqualDeep(maxSequence([-2, 1, -3, 4, -1, 2, 1, -5, 4]), [4, -1, 2, 1])
I'm getting one failure when submitting this kata. But if I run that test case in the console I get the correct result. Any ideas?
Java Code works and test passes, BUT ->
Process was terminated. It took longer than 10000ms to complete
In the details, it was mentioned that input should not be null. I took that to mean that I should validate against null input. If your intent was for warriors to validate against null input maybe add a test case for it? If that wasn't your intent, could you clarify the details for future warriors?