Python中使用小根堆充当大根堆时,返回结果记得逆序。即:return res[::-1]
点赞

相关推荐

点赞 评论 收藏
转发

牛客热帖

牛客网
牛客企业服务