Rearrange Array to Maximize Prefix Score

mediumSolve on LeetCodeLast edited: August 2, 2025