Pergunta de entrevista da empresa J.P. Morgan

How would you find the continuous subarray within an array which has the largest sum.