Est-ce votre entreprise ?
Find the smallest sub array sum and return the sum
Utilisateur anonyme
Sort the array in ascending order. First 2 numbers sum would be the SMALLEST SUBARRAY sum.
Iterate array to calculate total and the max val. after the 1 iteration , you have total and max val. Smallest sub array sum = totla - max val
Tenez-vous au courant des dernières opportunités et profitez de conseils d’initiés en suivant les entreprises de vos rêves.
Obtenez des recommandations et des mises à jour personnalisées en démarrant vos recherches.