Loading...
Is this your company?
Find the smallest sub array sum and return the sum
Anonymous
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
Check out your Company Bowl for anonymous work chats.
Get actionable career advice tailored to you by joining more bowls.
Stay ahead in opportunities and insider tips by following your dream companies.
Get personalised job recommendations and updates by starting your searches.