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
|
@@ -277,6 +277,7 @@ var dataStructureTyped = (() => {
|
|
|
277
277
|
* @remarks Time O(n), Space O(n)
|
|
278
278
|
*/
|
|
279
279
|
print() {
|
|
280
|
+
console.log(this.toVisual());
|
|
280
281
|
}
|
|
281
282
|
};
|
|
282
283
|
|
|
@@ -496,6 +497,7 @@ var dataStructureTyped = (() => {
|
|
|
496
497
|
* Time O(n) due to materialization, Space O(n) for the intermediate representation.
|
|
497
498
|
*/
|
|
498
499
|
print() {
|
|
500
|
+
console.log(this.toVisual());
|
|
499
501
|
}
|
|
500
502
|
};
|
|
501
503
|
|
|
@@ -8083,6 +8085,7 @@ var dataStructureTyped = (() => {
|
|
|
8083
8085
|
* @param [startNode=this._root] - The node to start printing from.
|
|
8084
8086
|
*/
|
|
8085
8087
|
print(options, startNode = this._root) {
|
|
8088
|
+
console.log(this.toVisual(startNode, options));
|
|
8086
8089
|
}
|
|
8087
8090
|
/**
|
|
8088
8091
|
* (Protected) Core DFS implementation.
|