4 ms·
The piece contains examples of the maximum segment sum, such as “mssp [3,-1,2] = 3”. Am I missing something? Shouldn’t the answer be 4?
by derriz 5y ago
The piece contains examples of the maximum segment sum, such as “mssp [3,-1,2] = 3”. Am I missing something? Shouldn’t the answer be 4?
- Athas 5y agoYou're right! I fat-fingered that example and nobody noticed (or pointed it out) before you. Fixed!
- thargor90 5y agoalso mssp ([3,-1,1] ++ [1,-1,3]) = 6, right?
- Athas 5y agoDamn, messed up again. I guess I should run more code and write less text.
- jkhdigital 5y ago> I guess I should run more code and write less text. Wisdom