Skip to content

Commit d7c1196

Browse files
Update trees_1.js
1 parent cea5406 commit d7c1196

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

aa_data_structures_workshop/trees_1.js

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,6 @@
3737
// WRAPPING UP
3838
// - Our implementation of a BST doesn't guarantee it to be balanced after any arbitrary insertions.
3939
//
40-
// - How to delete any node from BST? It's pretty involved:
41-
// - find the the node
42-
// - keep swapping that node with it's greater child until it is a leaf (at the bottom of the tree)
43-
// - swapping with the greater child always guarantees search tree property is not broken
44-
// - chop off the leaf, by setting it's parent's reference to null
45-
//
4640
// - Tree Height Interpretations
4741
// - Alvin consider's an empty binary tree as having height 0,
4842
// so a tree with a single node has height 1.
@@ -58,9 +52,6 @@
5852
//
5953
// - Then re-reimplement it without recursion.
6054
// - which one do you prefer recursive or iterative?
61-
//
62-
// - Implement #delete(val) using the previously mentioned steps
63-
//
6455
// Thanks for Attending! -AZ
6556

6657
class Node {

0 commit comments

Comments
 (0)