Search
⌘K

Leetcode 917. Reverse Only Letters

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.


Question Timeline

See when this question was last asked and where, including any notes left by other candidates.

Your account is free and you can post anonymously if you choose.