摘要:
//reduce源码阅读Array.prototype.myReduce = function (callback, initialValue) { if (this null) {//this指向的是Array,判断this是否为空 throw new TypeError('Array.proto 阅读全文
摘要:
堆排序迭代实现代码:import java.util.Arrays; public class mainFunction { public static void main(String[] args) { //将数组进行升序排列 int arr[] = {4,6,8,5,9}; heapSort( 阅读全文