Problem 1131 · Medium

Maximum of Absolute Value Expression

Maximize an expression built from two absolute differences plus an index distance over all pairs of positions. Four sign patterns are each checked in a single pass.

Open the interactive visualisation