Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 61f2d19

Browse files
Update breadthFirstSearch.js (trekhleb#666)
fix comment
1 parent 945e7c3 commit 61f2d19

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/algorithms/tree/breadth-first-search/breadthFirstSearch.js‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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
/**

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /