Problem 1746 · Medium
Maximize a nonempty subarray sum after squaring exactly one element.
Open the interactive visualisation