Available question text
Given a string s, repeatedly either delete the whole string or delete a prefix of length i when the first i characters equal the next i characters; compute the maximum number of such operations to delete all characters. This is solved by dynamic programming over suffixes combined with efficient substring-equality checks (n ≤ 4000) to compare adjacent blocks.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 2430. Maximum Deletions on a String
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source