堆排序原来如此简单
写在前面 今天在写leetcode算法题 6316. 重排数组以得到最大前缀分数 (https://leetcode.cn/contest/weekly contest 336/problems/rearrange array to max
共 2 篇文章
写在前面 今天在写leetcode算法题 6316. 重排数组以得到最大前缀分数 (https://leetcode.cn/contest/weekly contest 336/problems/rearrange array to max
写在前面 之前总觉得堆排序很难,今天写算法题的时候用到了排序,就搜了一下相关排序算法,看了一下之前觉得比较难的 快速排序 (https://juejin.cn/post/7209553403809873978)和堆排序,毕竟工作时间久了,理