使用prorityQueue 大顶堆 保持堆内个数为k 比堆顶字典序小 就先poll然后加入
1 5
牛客网
牛客网在线编程
牛客网题解
牛客企业服务