data-structure-typed 2.2.6 → 2.2.7
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/CHANGELOG.md +1 -1
- package/CONTRIBUTING.md +47 -1
- package/README.md +6 -6
- package/dist/cjs/index.cjs +3 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/cjs-legacy/index.cjs +3 -0
- package/dist/cjs-legacy/index.cjs.map +1 -1
- package/dist/esm/index.mjs +3 -0
- package/dist/esm/index.mjs.map +1 -1
- package/dist/esm-legacy/index.mjs +3 -0
- package/dist/esm-legacy/index.mjs.map +1 -1
- package/dist/umd/data-structure-typed.js +3 -0
- package/dist/umd/data-structure-typed.js.map +1 -1
- package/dist/umd/data-structure-typed.min.js +2 -2
- package/dist/umd/data-structure-typed.min.js.map +1 -1
- package/package.json +2 -2
- package/tsup.config.js +2 -2
- package/tsup.leetcode.config.js +1 -1
- package/tsup.node.config.js +4 -4
|
@@ -180,6 +180,7 @@ var _IterableEntryBase = class _IterableEntryBase {
|
|
|
180
180
|
* @remarks Time O(n), Space O(n)
|
|
181
181
|
*/
|
|
182
182
|
print() {
|
|
183
|
+
console.log(this.toVisual());
|
|
183
184
|
}
|
|
184
185
|
};
|
|
185
186
|
__name(_IterableEntryBase, "IterableEntryBase");
|
|
@@ -401,6 +402,7 @@ var _IterableElementBase = class _IterableElementBase {
|
|
|
401
402
|
* Time O(n) due to materialization, Space O(n) for the intermediate representation.
|
|
402
403
|
*/
|
|
403
404
|
print() {
|
|
405
|
+
console.log(this.toVisual());
|
|
404
406
|
}
|
|
405
407
|
};
|
|
406
408
|
__name(_IterableElementBase, "IterableElementBase");
|
|
@@ -8067,6 +8069,7 @@ var _BinaryTree = class _BinaryTree extends IterableEntryBase {
|
|
|
8067
8069
|
* @param [startNode=this._root] - The node to start printing from.
|
|
8068
8070
|
*/
|
|
8069
8071
|
print(options, startNode = this._root) {
|
|
8072
|
+
console.log(this.toVisual(startNode, options));
|
|
8070
8073
|
}
|
|
8071
8074
|
/**
|
|
8072
8075
|
* (Protected) Core DFS implementation.
|