Computer Science, asked by donprince7895, 1 year ago

Take a list of elements that contains both characters and numbers. Using any sortingalgorithm sort the list such that the characters are in alphabetical order and the numbersare in descending order. However, retain the position of numbers and characters. Forexample: input: b,2,1,c,3,a. Output: a,3,2,b,1,c.

Answers

Answered by Anonymous
3

Explanation:

Take a list of elements that contains both characters and numbers. Using any sortingalgorithm sort the list such that the characters are in alphabetical order and the numbersare in descending order. However, retain the position of numbers and characters. Forexample: input: b,2,1,c,3,a. Output: a,3,2,b,1,c.

Answered by Anonymous
0

Explanation:

list of elements characters and numbers any written position of numbers

Similar questions