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