forked from trekhleb/javascript-algorithms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit bd5a16b
Fix BST removal method (trekhleb#74)
* Fix LinkedList
* Fix the prepend method for the LinkedList
* Fix the remove method for the MinHeap
* Correct a comment
* Fix BST removal method1 parent e558231 commit bd5a16b
File tree
2 files changed
+26
-7
lines changed- src/data-structures/tree/binary-search-tree
- __test__
2 files changed
+26
-7
lines changedLines changed: 11 additions & 7 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
94 | 94 |
| |
95 | 95 |
| |
96 | 96 |
| |
97 | - | ||
98 | - | ||
97 | + | ||
98 | + | ||
99 | + | ||
100 | + | ||
101 | + | ||
102 | + | ||
103 | + | ||
99 | 104 |
| |
100 | 105 |
| |
101 | 106 |
| |
| |||
113 | 118 |
| |
114 | 119 |
| |
115 | 120 |
| |
116 | - | ||
117 | - | ||
118 | - | ||
119 | - | ||
120 | - | ||
121 | + | ||
122 | + | ||
123 | + | ||
124 | + | ||
121 | 125 |
| |
122 | 126 |
| |
123 | 127 |
| |
|
Lines changed: 15 additions & 0 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
185 | 185 |
| |
186 | 186 |
| |
187 | 187 |
| |
188 | + | ||
189 | + | ||
190 | + | ||
191 | + | ||
192 | + | ||
193 | + | ||
194 | + | ||
195 | + | ||
196 | + | ||
197 | + | ||
198 | + | ||
199 | + | ||
200 | + | ||
201 | + | ||
202 | + | ||
188 | 203 |
| |
189 | 204 |
| |
190 | 205 |
| |
|
0 commit comments