Longest all-equal array after merging neighbours into their sums

0
Remix

You may replace any run of adjacent elements with their sum. Make every element of the resulting array equal while keeping it as long as possible, and return that length. Only the title of this report was public; the details follow the plain reading of it.

MicrosoftCodingLast asked Sep 2026
No answer yet. Write the first one; the best answer gets endorsed.