Sponsored
Use these hints if you're stuck. Try solving on your own first.
Think in reverse; instead of finding the minimum prefix + suffix, find the maximum subarray.
Finding the maximum subarray is standard and can be done greedily.
Solve with full IDE support and test cases