container-avltreelist
Advanced tools
Comparing version 0.1.3 to 0.1.4
12
index.js
@@ -85,2 +85,14 @@ /** | ||
AvlTreeList.prototype.popSmallest = function () { | ||
var smallestNode = this.first; | ||
this.removeByReference(smallestNode); | ||
return smallestNode.object; | ||
}; | ||
AvlTreeList.prototype.popGreatest = function () { | ||
var greatestNode = this.last; | ||
this.removeByReference(greatestNode); | ||
return greatestNode.object; | ||
}; | ||
AvlTreeList.prototype.add = function (obj) { | ||
@@ -87,0 +99,0 @@ this.length += 1; |
{ | ||
"name": "container-avltreelist", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "AvlTreeList implementation in JavaScript", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
15288
442