Problem 3897 · Hard

Maximum Value of Concatenated Binary Segments

Each segment is a run of ones followed by zeros, and the segments can be reordered before they are joined into one binary number.

Open the interactive visualisation