Question d’entretien chez MiQ

find subarray that has maximum sum within array