Apply suggestions from code review
Update DepthFirstSearch.java - signature removed, and whitespaces resolved Co-Authored-By: Libin Yang <contact@yanglibin.info>
This commit is contained in:
parent
785b570167
commit
fa1503fa77
@ -12,7 +12,6 @@ package src.main.java.com.search;
|
||||
* Best-case performance O(1)
|
||||
* Average performance O(n)
|
||||
*
|
||||
* @author abir (https://github.com/abircb)
|
||||
*/
|
||||
|
||||
public class DepthFirstSearch {
|
||||
@ -35,14 +34,12 @@ public class DepthFirstSearch {
|
||||
* The BinaryTree class defines the structure of a binary tree
|
||||
* Also contains a static nested class called TreeNode
|
||||
* @param <T>
|
||||
* @author abir
|
||||
*/
|
||||
class BinaryTree<T extends Comparable<T>> {
|
||||
|
||||
private TreeNode<T> root;
|
||||
|
||||
/**
|
||||
* @author abir
|
||||
* @param <P>
|
||||
* This class defines what a node in a binary tree looks like
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user