We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4d9965c commit 785b570Copy full SHA for 785b570
1 file changed
src/main/java/com/search/DepthFirstSearch.java
@@ -10,7 +10,7 @@
10
In comes, depth-first search
11
* Worst-case performance O(n)
12
* Best-case performance O(1)
13
- * Average performance O(n)
+ * Average performance O(n)
14
*
15
* @author abir (https://github.com/abircb)
16
*/
@@ -26,8 +26,8 @@ public class DepthFirstSearch {
26
27
28
public static <T extends Comparable<T>> T find(T key, BinaryTree<T> tree) {
29
- return tree.get(key);
30
- }
+ return tree.get(key);
+ }
31
32
}
33
0 commit comments