Maximum Deletions on a String
From each position, delete the whole rest or a repeated prefix; a suffix DP keeps the best count for every start.
From each position, delete the whole rest or a repeated prefix; a suffix DP keeps the best count for every start.