String
2785. Sort Vowels in a String
Given a string s, rearrange only the vowels (a, e, i, o, u in any case) so they appear in non-decreasing ASCII order, leaving consonants in place. Extract the vowels, sort them, and reinsert them at…
Loading…
Given a string s, rearrange only the vowels (a, e, i, o, u in any case) so they appear in non-decreasing ASCII order, leaving consonants in place. Extract the vowels, sort them, and reinsert them at…
Loading…