Find the Substring With Maximum Cost

mediumSolve on LeetCode
Last edited: July 26, 2025