You are given a string s consisting of lowercase English letters.
In one operation, you can:
Delete the first i letters of s (where i s.length i letters are equal to the next i letters.
Delete the entire string s.
Return the maximum number of operations required to completely delete s.
Constraints:
s.length
s consists only of lowercase English letters.
You are given a string s consisting of lowercase English letters.
In one operation, you can:
Delete the first i letters of s (where i s.length i letters are equal to the next i letters.
Delete the entire string s.
Return the maximum number of operations required to completely delete s.
Constraints:
s.length
s consists only of lowercase English letters.