0

当有多个解决方案时,我想返回课程按升序排列的解决方案。如何通过拓扑排序算法做到这一点?

4

1 回答 1

0

使用 PriorityQueue 代替 Queue 解决了这个问题。

于 2021-12-05T23:45:49.510 回答