-
Notifications
You must be signed in to change notification settings - Fork 629
Commit 53f9506
Added Pretty Printing feature to Binary Tree Programs (#17)
* Added some more functions to BinarySearchTree.
-> Defining intial elements of newly created Trees
-> Prettyprinting trees with left-right order and * representing null nodes.
* Added pretty print to BinaryTree.py
* Fixed flake8 Linting1 parent 1cf984a commit 53f9506
2 files changed
+43
-1
lines changedLines changed: 22 additions & 1 deletion
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
72 | 72 |
| |
73 | 73 |
| |
74 | 74 |
| |
75 | - | ||
75 | + | ||
76 | 76 |
| |
77 | 77 |
| |
78 | + | ||
79 | + | ||
80 | + | ||
81 | + | ||
78 | 82 |
| |
79 | 83 |
| |
80 | 84 |
| |
| |||
106 | 110 |
| |
107 | 111 |
| |
108 | 112 |
| |
113 | + | ||
114 | + | ||
115 | + | ||
116 | + | ||
117 | + | ||
118 | + | ||
119 | + | ||
120 | + | ||
121 | + | ||
122 | + | ||
123 | + | ||
124 | + | ||
125 | + | ||
126 | + | ||
127 | + | ||
128 | + | ||
109 | 129 |
| |
110 | 130 |
| |
111 | 131 |
| |
| |||
117 | 137 |
| |
118 | 138 |
| |
119 | 139 |
| |
140 | + | ||
120 | 141 |
| |
121 | 142 |
| |
122 | 143 |
| |
|
Lines changed: 21 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
38 | 38 |
| |
39 | 39 |
| |
40 | 40 |
| |
41 | + | ||
42 | + | ||
41 | 43 |
| |
42 | 44 |
| |
43 | 45 |
| |
44 | 46 |
| |
45 | 47 |
| |
46 | 48 |
| |
49 | + | ||
50 | + | ||
51 | + | ||
52 | + | ||
53 | + | ||
54 | + | ||
55 | + | ||
56 | + | ||
57 | + | ||
58 | + | ||
59 | + | ||
60 | + | ||
61 | + | ||
62 | + | ||
63 | + | ||
64 | + | ||
65 | + | ||
66 | + | ||
47 | 67 |
| |
48 | 68 |
| |
49 | 69 |
| |
50 | 70 |
| |
51 | 71 |
| |
52 | 72 |
| |
73 | + | ||
53 | 74 |
| |
54 | 75 |
| |
55 | 76 |
| |
|
0 commit comments