# Lexicographically Smallest Beautiful String (LeetCode 2663)
## Approach
Greedy increment last char avoiding palindrome of len 2/3.
## Edge cases
Duplicates and already-sorted input.
## Practice tip
Narrate tradeoffs out loud before coding.
Interview prep: [the Linkjob AI app](https://www.linkjob.ai/).