Most frequent k chars distance: Difference between revisions

m
m (→‎{{header|Java}}: improved)
Line 187:
* @return sorted HashMap
*/
private static <K, V extends Comparable<? super V>> HashMap<K, V>
HashMap<K, V> descendingSortByValues(HashMap<K, V> map) {
List<Map.Entry<K, V>> list = new ArrayList<Map.Entry<K, V>>(map.entrySet());
// Defined Custom Comparator here
Anonymous user