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
|
@@ -178,6 +178,7 @@ var _IterableEntryBase = class _IterableEntryBase {
|
|
|
178
178
|
* @remarks Time O(n), Space O(n)
|
|
179
179
|
*/
|
|
180
180
|
print() {
|
|
181
|
+
console.log(this.toVisual());
|
|
181
182
|
}
|
|
182
183
|
};
|
|
183
184
|
__name(_IterableEntryBase, "IterableEntryBase");
|
|
@@ -399,6 +400,7 @@ var _IterableElementBase = class _IterableElementBase {
|
|
|
399
400
|
* Time O(n) due to materialization, Space O(n) for the intermediate representation.
|
|
400
401
|
*/
|
|
401
402
|
print() {
|
|
403
|
+
console.log(this.toVisual());
|
|
402
404
|
}
|
|
403
405
|
};
|
|
404
406
|
__name(_IterableElementBase, "IterableElementBase");
|
|
@@ -8065,6 +8067,7 @@ var _BinaryTree = class _BinaryTree extends IterableEntryBase {
|
|
|
8065
8067
|
* @param [startNode=this._root] - The node to start printing from.
|
|
8066
8068
|
*/
|
|
8067
8069
|
print(options, startNode = this._root) {
|
|
8070
|
+
console.log(this.toVisual(startNode, options));
|
|
8068
8071
|
}
|
|
8069
8072
|
/**
|
|
8070
8073
|
* (Protected) Core DFS implementation.
|