Topic: Dynamic Programming Problem / Level: intermediate

Problem: Compute the maximum sum of a subarray where you can replace up to one element with a fixed value using dynamic programming.

Run the code to see the output here...