Merge two neighbouring numbers into their sum, as few times as possible, until the array reads the same in both directions.
Merge two neighbouring numbers into their sum, as few times as possible, until the array reads the same in both directions.
Opens with the full question.