Skip to content

Instantly share code, notes, and snippets.

View mihirsamdarshi's full-sized avatar

Mihir Samdarshi mihirsamdarshi

View GitHub Profile
package lmu.cmsi281.examples;
import java.util.ArrayList;
public class mihirDepthFirstSearch {
public Boolean searchRecursive(BinaryTreeNodeString root, String element, ArrayList<String> path) {
if (root == null) {
return false;
}
path.add(root.getData());