A student wrote the following inorder method (buggy). Identi…
A student wrote the following inorder method (buggy). Identify the bug:public static void inorder(BinaryTreeNode node) { if (node.getLeft() != null) inorder(node.getLeft()); System.out.print(node.element + ” “); if (node.getRight() == null) inorder(node.getRight()); } What is the bug?
Read Details