File tree 1 file changed +3
-3
lines changed
src/algorithms/tree/breadth-first-search
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ import Queue from '../../../data-structures/queue/Queue';
3
3
/**
4
4
* @typedef {Object } Callbacks
5
5
* @property {function(node: BinaryTreeNode, child: BinaryTreeNode): boolean } allowTraversal -
6
- * Determines whether DFS should traverse from the node to its child.
7
- * @property {function(node: BinaryTreeNode) } enterNode - Called when DFS enters the node.
8
- * @property {function(node: BinaryTreeNode) } leaveNode - Called when DFS leaves the node.
6
+ * Determines whether BFS should traverse from the node to its child.
7
+ * @property {function(node: BinaryTreeNode) } enterNode - Called when BFS enters the node.
8
+ * @property {function(node: BinaryTreeNode) } leaveNode - Called when BFS leaves the node.
9
9
*/
10
10
11
11
/**
You can’t perform that action at this time.
0 commit comments