917 Reverse Only Letters
Given a stringS
, return the "reversed" string where all characters that are not a letter stay in the same place, and all letters reverse their positions.
Example 1:
Example 2:
Example 3:
Note:
S.length <= 100
33 <= S[i].ASCIIcode <= 122
S
doesn't contain\
or"
就是改改partition模板
Last updated