anku580 / Java-Algorithms

This repository contains java algorithms and some interview questions.
11 stars 57 forks source link

Create Frequency_Sort.java #17

Closed Amrit-Raj-Nits closed 3 years ago

Amrit-Raj-Nits commented 3 years ago

This code is designed to Sort given Strings based on the Scores and Tie Breaking Scores(In case of a Tie) which are stored in an Arraylist and the ArrayList is mapped to the strings in a HashMap. This code can be suitably modified for multiple tasks which include frequency sort based on simple frequency Map as well.