Your Dashboard
Interview Coaching
Learn
System Design
ML System Design
Code
Behavioral
Salary Negotiation
Interview Guides
Search
⌘K
Get Premium
Leetcode 2734. Lexicographically Smallest String After Substring Operation
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.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.