摘要: 最近正在重新看算法,记录关于堆排的一些特性和个人理解; 设:初始数组 5 0 6 8 2 代码清单: public static void heapInsert(int[] arr, int index) { //将数组转换成为大根堆的形式 //找父节点 while (arr[index] > ar 阅读全文
posted @ 2020-05-21 13:00 norahc 阅读(200) 评论(1) 推荐(0)