Available question text
Reverse the order of alphabetic characters in a string while keeping all non-letter characters fixed in their original positions. This is typically solved with a two-pointer scan that swaps letters and skips non-letters.
Related questions
Continue with questions that share topics or the same question type.
- Reverse Letters Then Special Characters in a String
Coding
- Sort a list of input letters where there is only a subset of possible letters from the alphabet (as in 3-4 different letters, but many instances).
Coding
- Check Distances Between Same Letters
Coding
- Concatenate Array With Reverse
Coding · Array · Simulation
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 917. Reverse Only Letters
Interview date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source