Rearrange Array to Maximize Prefix Score

mediumSolve on LeetCode
Last edited: August 2, 2025