mirror of
https://github.com/trekhleb/javascript-algorithms.git
synced 2025-07-04 16:12:09 +08:00
@ -3,9 +3,9 @@ import Queue from '../../../data-structures/queue/Queue';
|
||||
/**
|
||||
* @typedef {Object} Callbacks
|
||||
* @property {function(node: BinaryTreeNode, child: BinaryTreeNode): boolean} allowTraversal -
|
||||
* Determines whether DFS should traverse from the node to its child.
|
||||
* @property {function(node: BinaryTreeNode)} enterNode - Called when DFS enters the node.
|
||||
* @property {function(node: BinaryTreeNode)} leaveNode - Called when DFS leaves the node.
|
||||
* Determines whether BFS should traverse from the node to its child.
|
||||
* @property {function(node: BinaryTreeNode)} enterNode - Called when BFS enters the node.
|
||||
* @property {function(node: BinaryTreeNode)} leaveNode - Called when BFS leaves the node.
|
||||
*/
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user