import java.util.*; public class Solution { static class Node{ int freq; int key; int val; public Node(int freq, int key, int val){ this.freq = freq; this.key = key; this.val = val; } } //频率--链表的哈希表 //相同频率的...