Available question text
Given s and t, perform t rounds where each non-'z' character becomes the next letter and each 'z' becomes "ab", and return the final string length modulo 10^9+7. The algorithmic challenge is to avoid explicit expansion (s and t up to 10^5) by modeling per-character growth over time with a DP/recurrence or fast exponentiation to compute the total length efficiently.
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 3335. Total Characters in String After Transformations I
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source