Created
March 26, 2015 00:41
-
-
Save kedarmhaswade/941527db4e6a2094525a to your computer and use it in GitHub Desktop.
Inorder tree walk ...
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
class Tree { | |
Tree left, right; | |
int key; | |
static void inorder(Tree r) { | |
if (r != null) { | |
inorder(r.left); | |
System.out.println(r.key); | |
inorder(r.right); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment