File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/data-structures/trees Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -166,7 +166,7 @@ class BinarySearchTree {
166166 }
167167
168168 /**
169- * In-order traversal on a tree
169+ * In-order traversal on a tree: left-root-right.
170170 *
171171 * If the tree is a BST, then the values will be sorted in ascendent order
172172 *
@@ -179,7 +179,8 @@ class BinarySearchTree {
179179 }
180180
181181 /**
182- * Pre-order traversal on a tree. Similar results to DFS
182+ * Pre-order traversal on a tree: root-left-right.
183+ * Similar results to DFS
183184 *
184185 * @param {TreeNode } node first node to start the traversal
185186 * @see dfs similar results to the breath first search
@@ -191,7 +192,7 @@ class BinarySearchTree {
191192 }
192193
193194 /**
194- * Post-order traversal on a tree
195+ * Post-order traversal on a tree: left-right-root.
195196 *
196197 * @param {TreeNode } node first node to start the traversal
197198 */
You can’t perform that action at this time.
0 commit comments