private static class Node{ int data; Node lt, rt; public Node(int val){ this.data = val; lt = rt = null; } } public static void main(String[] args) { Node root = new Node(1); root.lt = new Node(2); root.rt = new Node(3); root.lt.lt = new Node(4); root.lt.rt = new Node(5); int solution = solutionByBFS(root); System.out.println(solution); int i = solutionByDFS(0, root); System.out.println(i); } pr..