第10题用堆排序可以解决,用一个大小为1000的小顶堆就可以了。Leetcode原题你可以看看https://leetcode-cn.com/problems/zui-xiao-de-kge-shu-lcof/
点赞 3

相关推荐

牛客热帖

牛客网
牛客企业服务