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

Commit785b570

Browse files
authored
Update DepthFirstSearch.java
1 parent4d9965c commit785b570

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/main/java/com/search/DepthFirstSearch.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
In comes, depth-first search
1111
* Worst-case performanceO(n)
1212
* Best-case performanceO(1)
13-
* Average performanceO(n)
13+
* Average performanceO(n)
1414
*
1515
* @author abir (https://github.com/abircb)
1616
*/
@@ -26,8 +26,8 @@ public class DepthFirstSearch {
2626
*/
2727

2828
publicstatic <TextendsComparable<T>>Tfind(Tkey,BinaryTree<T>tree) {
29-
returntree.get(key);
30-
}
29+
returntree.get(key);
30+
}
3131

3232
}
3333

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp