Pregunta de entrevista de Apple

Maximum subarray sum problem with Kadane's algorithm.