LeetCode621——任务调度器

个人LeetCode代码仓:https://github.com/617076674/LeetCodejava 原题连接:https://leetcode-cn.com/problems/task-scheduler/git 题目描述:github 知识点:优先队列、贪心算法算法 思路一:每一轮分配后从新排序 优先分配数目最多的任务,当任务间隔i <= n时,即便没有任务分配,结果时间也要增长,这
相关文章
相关标签/搜索