File tree Expand file tree Collapse file tree
src/algorithms/tree/breadth-first-search Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ import Queue from '../../../data-structures/queue/Queue';
33/**
44 * @typedef {Object } Callbacks
55 * @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.
99 */
1010
1111/**
You can’t perform that action at this time.
0 commit comments