mirror of
https://github.com/trekhleb/javascript-algorithms.git
synced 2026-03-13 08:51:02 +08:00
Make it possible to insert meta information to bst node.
This commit is contained in:
@@ -5,7 +5,7 @@ export default class BinaryTreeNode {
|
||||
* @param {*} [value] - node value.
|
||||
* @param {Object} meta - any meta information that needs to be attached to the node.
|
||||
*/
|
||||
constructor(value = null, meta = {}) {
|
||||
constructor(value = null, meta = null) {
|
||||
this.left = null;
|
||||
this.right = null;
|
||||
this.parent = null;
|
||||
|
||||
Reference in New Issue
Block a user