greedy-algorithm

所定义的比较策略是不能有歧义的,即要具备传递性

经验:贪心策略基本就跟排序和堆有关

Last updated

Was this helpful?