Created
April 9, 2019 10:17
-
-
Save ssaurel/e05a76dba20f76c728b689add108f0d2 to your computer and use it in GitHub Desktop.
Tree Post Order Traversal Implementation in Java for the SSaurel's Channel
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Left, Right, Root | |
public static <T> void postOrderTraverse(Node<T> node) { | |
if (node == null) | |
return; | |
postOrderTraverse(node.left); | |
postOrderTraverse(node.right); | |
System.out.print(node.data + " "); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment