Movatterモバイル変換


[0]ホーム

URL:


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

Commit61f2d19

Browse files
authored
Update breadthFirstSearch.js (trekhleb#666)
fix comment
1 parent945e7c3 commit61f2d19

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 whetherDFS should traverse from the node to its child.
7-
*@property {function(node: BinaryTreeNode)} enterNode - Called whenDFS enters the node.
8-
*@property {function(node: BinaryTreeNode)} leaveNode - Called whenDFS leaves the node.
6+
* Determines whetherBFS should traverse from the node to its child.
7+
*@property {function(node: BinaryTreeNode)} enterNode - Called whenBFS enters the node.
8+
*@property {function(node: BinaryTreeNode)} leaveNode - Called whenBFS leaves the node.
99
*/
1010

1111
/**

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp