mirror of
https://github.com/TheAlgorithms/Java.git
synced 2025-07-11 22:22:21 +08:00
Update TreeTraversal.java
This commit is contained in:
@ -39,7 +39,7 @@ public class TreeTraversal {
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* The Node class which initializes a Node of a tree
|
* The Node class which initializes a Node of a tree
|
||||||
* Consists of all 3 traversal methods: printInOrder, printPostOrder & printPreOrder
|
* Consists of all 4 traversal methods: printInOrder, printPostOrder, printPreOrder & printLevelOrder
|
||||||
* printInOrder: LEFT -> ROOT -> RIGHT
|
* printInOrder: LEFT -> ROOT -> RIGHT
|
||||||
* printPreOrder: ROOT -> LEFT -> RIGHT
|
* printPreOrder: ROOT -> LEFT -> RIGHT
|
||||||
* printPostOrder: LEFT -> RIGHT -> ROOT
|
* printPostOrder: LEFT -> RIGHT -> ROOT
|
||||||
|
Reference in New Issue
Block a user