Problem 3732 · Medium

Maximum Product of Three Elements After One Replacement

teaching model: the product is linear in the replaced value, so only the two extreme values need checking.

Open the interactive visualisation