El problema del subsecuencia de suma máxima consiste en encontrar una secuencia (en posiciones consecutivas) cuya suma sea máxima dentro de un vector original. Por ejemplo: en el arreglo -1,6,-2,5,-1,4,3,-4,3. 1 la subsecuencia de suma máxima es 6,-2,5,-1,4,3, cuya suma es 15. Lea un conjunto de números y muestre la subsecuencia y la suma.
The problem of the subsequence of the sum of the maximum load in a sequence in the consecutive positions. For example: in the -1,6,-2,5,-1,4,3,-4,3 arrangement. 1 the maximum sum subsequence is 6,-2,5,-1,4,3, which sum is 15. Read a set of numbers and show the subsequence and sum.
The problem of the subsequence of the sum of the maximum load in a sequence in the consecutive positions. For example: in the -1,6,-2,5,-1,4,3,-4,3 arrangement. 1 the maximum sum subsequence is 6,-2,5,-1,4,3, which sum is 15. Read a set of numbers and show the subsequence and sum.