Example error?


  • 0

    for

    nums = [7,2,5,10,8]
    m = 2

    isn't the best [10, 5], and [7,2,8] for a max sum of 17 instead of the stated 18?


  • 2
    Q

    What we need to do is to split the number into subarrays instead of subsequence.

    Subarrays mean the number must be continuous.


Log in to reply
 

Looks like your connection to LeetCode Discuss was lost, please wait while we try to reconnect.