1 2 3 4 5 6 7 8 9 10 11 12 13 | 1 1 15 1 1 178 1 | var binaryHeap = require("./binaryHeap.js"); var maxHeap = function() { binaryHeap.apply(this, arguments); }; maxHeap.prototype = new binaryHeap(); maxHeap.prototype.shouldSwap = function(childData, parentData) { return childData > parentData; }; module.exports = maxHeap; |