binaryheap-resizable
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -92,5 +92,4 @@ /** | ||
} | ||
return item; | ||
} | ||
return item; | ||
}; | ||
@@ -97,0 +96,0 @@ |
{ | ||
"author" : "Roberto Sales <robertosalesc@dcc.ufba.br>", | ||
"name": "binaryheap-resizable", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"description": "binary heap implemented over a resizable circular buffer", | ||
@@ -6,0 +6,0 @@ "keywords": ["binary", "heap", "circular buffer", "tree"], |
10
test.js
@@ -11,11 +11,6 @@ /** | ||
heap.push({priority: 5}); | ||
console.log(heap.toArray()); | ||
heap.push({priority: 8}); | ||
console.log(heap.toArray()); | ||
heap.push({priority: 4}); | ||
console.log(heap.toArray()); | ||
heap.push({priority: 11}); | ||
console.log(heap.toArray()); | ||
heap.push({priority: 3}); | ||
console.log(heap.toArray()); | ||
@@ -27,4 +22,7 @@ | ||
console.log("Popped: " + heap.pop()); | ||
heap.pop(); | ||
console.log(heap.toArray()); | ||
console.log("Popped: " + heap.pop()); | ||
console.log(heap.toArray()); |
Sorry, the diff of this file is not supported yet
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
21934
109