So the following input in an array would be something like
Array: {7 2 5 -3 3 6 -4 1}
and the subsequence would be
Subseq: : 7 2 5 -3 3 6
and the answer to the largest sum would be 20. So, what exactly is going on here. I am not understanding the concept of a subsequence. After reading, I thought the subsequence started at array[0] and went through to array[n] and picked the largest numbers but that does not seem to be the case because the numbers should have stopped after the number 7 then. I am confused on what exactly a subsequence is doing with this user entered array.