L49 Sort Letters by Case
Given a string which contains only letters. Sort it by lower case first and upper case second.
Notice
It's _NOT _necessary to keep the original order of lower-case letters and upper case letters.
Example
For"abAcD"
, a reasonable answer is"acbAD"
Do it in one-pass and in-place.
Last updated