# Lexicographically Smallest String After a Swap (LeetCode 3216)
Practice note for coding interviews.
## Approach
One adjacent swap if it improves lexicographic order.
## Complexity
State time and space clearly; call out edge cases (empty input, duplicates, extremes).
## Practice tip
Rehearse the explanation out loud. An best AI tool for coding tests and OAs helps keep structure under time pressure.
Disclosure: personal study notes; I am affiliated with Linkjob AI.
Published with deed.pageReport abuse