Update breadthFirstSearch.js (#666)

fix comment
This commit is contained in:
Perry 2022-01-28 03:53:42 +08:00 committed by GitHub
parent 945e7c384e
commit 61f2d192f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,9 +3,9 @@ import Queue from '../../../data-structures/queue/Queue';
/** /**
* @typedef {Object} Callbacks * @typedef {Object} Callbacks
* @property {function(node: BinaryTreeNode, child: BinaryTreeNode): boolean} allowTraversal - * @property {function(node: BinaryTreeNode, child: BinaryTreeNode): boolean} allowTraversal -
* Determines whether DFS should traverse from the node to its child. * Determines whether BFS should traverse from the node to its child.
* @property {function(node: BinaryTreeNode)} enterNode - Called when DFS enters the node. * @property {function(node: BinaryTreeNode)} enterNode - Called when BFS enters the node.
* @property {function(node: BinaryTreeNode)} leaveNode - Called when DFS leaves the node. * @property {function(node: BinaryTreeNode)} leaveNode - Called when BFS leaves the node.
*/ */
/** /**