Skip to content

Instantly share code, notes, and snippets.

Avatar
:octocat:

Abhishek Kumar xenowits

:octocat:
View GitHub Profile
View binaryHeap.js
/** @class representing a binary heap node */
class Node {
/**
* @author: xenowits
* @param {string} id The accountID of the user
* @param {number} wt The associated weight (equal to noOfEntries)
* @param {number} totalWt Total weight of the subheap headed by current Node
*/
constructor(id, wt, totalWt) {
this.accountID = id;