Closed emyarod closed 6 years ago
The current implementation will fail the following tests:
maxSubarray([]); // returns 0, should return `undefined` maxSubarray([-42]); // returns 0, should return 42 maxSubArray([-10, -1, -2, -3, -1]); // returns 0, should return -1
The current implementation will fail the following tests: