Commit 6945735
binary_tree_traversals.py: Simplify with dataclasses (TheAlgorithms#4336)
* binary_tree_traversals.py: Simplify with dataclasses
* Update data_structures/binary_tree/binary_tree_traversals.py
Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>
* Optional["Node"]
Co-authored-by: Dhruv Manilawala <dhruvmanila@gmail.com>1 parent 2ce6be0 commit 6945735
1 file changed
+7
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
| 2 | + | |
| 3 | + | |
2 | 4 | | |
3 | 5 | | |
| 6 | + | |
4 | 7 | | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
13 | 11 | | |
14 | 12 | | |
15 | 13 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
| 14 | + | |
22 | 15 | | |
23 | 16 | | |
24 | 17 | | |
| |||
0 commit comments