Efficient sorting algorithms
Efficient sorting algorithms
3
000 = 0
4
1001= 1
4
1010 = 2
6
010101 = 2
Given string str consisting of uppercase and lowercase characters.
The task is to sort uppercase and lowercase characters separately
such that if the ith place in the original string had an uppercase
character, then it should not have a lowercase character after being
sorted and vice versa.