bst-typed 2.2.8 → 2.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -1
- package/dist/cjs/index.cjs +0 -1
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs-legacy/index.cjs +0 -1
- package/dist/cjs-legacy/index.cjs.map +1 -1
- package/dist/esm/index.mjs +0 -1
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm-legacy/index.mjs +0 -1
- package/dist/esm-legacy/index.mjs.map +1 -1
- package/dist/types/data-structures/binary-tree/binary-tree.d.ts +0 -1
- package/dist/umd/bst-typed.js +0 -1
- package/dist/umd/bst-typed.js.map +1 -1
- package/dist/umd/bst-typed.min.js.map +1 -1
- package/package.json +2 -2
- package/src/data-structures/binary-tree/binary-tree.ts +0 -1
package/README.md
CHANGED
|
@@ -350,7 +350,8 @@ bfsNodes[2].id; // 16
|
|
|
350
350
|
// Create a simple BST with numeric keys
|
|
351
351
|
const bst = new BST<number>([11, 3, 15, 1, 8, 13, 16, 2, 6, 9, 12, 14, 4, 7, 10, 5]);
|
|
352
352
|
|
|
353
|
-
|
|
353
|
+
// Keep the example output in source comments but avoid noisy test logs.
|
|
354
|
+
await withMutedConsole(() => bst.print());
|
|
354
355
|
// _______8__________
|
|
355
356
|
// / \
|
|
356
357
|
// ___4___ ____12_____
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1484,7 +1484,6 @@ var BinaryTree = class extends IterableEntryBase {
|
|
|
1484
1484
|
* @remarks Time O(N * M), where N is the number of items to set and M is the size of the tree at insertion (due to O(M) `set` operation). Space O(M) (from `set`) + O(N) (for the `inserted` array).
|
|
1485
1485
|
*
|
|
1486
1486
|
* @param keysNodesEntriesOrRaws - An iterable of items to set.
|
|
1487
|
-
* @param [values] - An optional parallel iterable of values.
|
|
1488
1487
|
* @returns An array of booleans indicating the success of each individual `set` operation.
|
|
1489
1488
|
*/
|
|
1490
1489
|
addMany(keysNodesEntriesOrRaws) {
|