Answers for "print values of bst java"

0

print values of bst java

void printTree(TreeNode node, String prefix)
 {
    if(node == null) return;

    System.out.println(prefix + " + " + node.data);
    printTree(node.left , prefix + " ");
    printTree(node.right , prefix + " ");
 }
Posted by: Guest on May-08-2020

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language