mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-04-29 20:26:07 -04:00
Update README.md
This commit is contained in:
parent
50c188a88c
commit
072febeb9c
@ -383,7 +383,8 @@ def dfs(root, visited):
|
|||||||
<br>
|
<br>
|
||||||
|
|
||||||
- `left -> node -> right`
|
- `left -> node -> right`
|
||||||
- in a bst, in-order traversal will be in ascending order (therefore, it's the most frequently used method).
|
- in a bst, in-order traversal will be sorted in the ascending order (therefore, it's the most frequently used method).
|
||||||
|
- note, however, that convert a sorted array to a bst with inorder has no unique solution (at the same time, both preorder and postorder are unique identifiers of a bst).
|
||||||
|
|
||||||
```python
|
```python
|
||||||
def inorder(self, root):
|
def inorder(self, root):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user