sort

PythonF

Frequency Sort – Numbers

Given N integers, sort them based on their frequency in descending order. If the frequency is same then sort based on their values in…
PythonF

Sort By Last Name

N persons first and last names are passed as input. The program must sort them based on the last name. (All last names are distinct, that is…
JavaF

Sort – Odd & Even Ascending

An array of N numbers is passed as the input. The program must sort the odd numbers and even numbers separately in ascending order. The odd…
PythonF

Split String & Sort

An even length string S is passed as the input. The program must split the string into two parts S1 and S2 and sort them in ascending order.…
PythonF

Sort Integers in String

The program must accept a string S which has only numbers and underscores as the input. The program must print only the integers…