Empresa engajada
Find the largest sum of contiguous numbers in an array
Sigiloso
What about negative numbers in the array - you can't just sum it up
maximum subarray algorithm http://en.wikipedia.org/wiki/Maximum_subarray_problem
Dynamic programming
The key word is "contiguous" - the solution above will nto work. Just google the solution - there are quite few options here.
Fique por dentro de todas as oportunidades e dicas internas seguindo as empresas de seus sonhos.
Comece a buscar vagas para receber atualizações e recomendações personalizadas.