Sponsored
Sponsored
Use these hints if you're stuck. Try solving on your own first.
For any index i, how can we find the sum of the first (i+1) elements from the sum of the first i elements?
If the total sum of the array is known, how can we check if the sum of the first (i+1) elements greater than or equal to the remaining elements?