instagram

Custom sorting algorithm using java collection classes

On Given Map of Character and Priority of character, design your own sorting algorithm to sort list of strings.

There will be two inputs as per below.

Input:

Output:

Algorithm


Share