Available question text
Given a lowercase string and the ability to perform exactly one operation that decrements every character in any chosen non-empty substring by one (with 'a' wrapping to 'z'), choose the substring to produce the lexicographically smallest resulting string. The challenge is to pick the optimal contiguous segment under that wraparound rule to minimize lexicographic order for strings up to 3e5 length.
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 2734. Lexicographically Smallest String After Substring Operation
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source