Bianca Gandolfo PRO
Slide decks for learning JavaScript
@BiancaGando
Updated 1/18/2017
@BiancaGando
@BiancaGando
@BiancaGando
Constructor
Methods
//Constructor
//Methods
//insert
//contains
@BiancaGando
@BiancaGando
Fast
Value lookup by key
Slow
Inserting new values
Deleting values
Fast (usually)
Value lookup by key
Inserting new values
Deleting values
@BiancaGando
@BiancaGando
@BiancaGando
//Constructor
//Methods
//insert
//contains
@BiancaGando
@BiancaGando
Linked List
Array
Object
Stack/Queue
@BiancaGando
@BiancaGando
//Code here
@BiancaGando
@BiancaGando
@BiancaGando
@BiancaGando
@BiancaGando
1. Go left until the left is null
2. What do we do when the min or max has a child node?
//Pseudocode!
@BiancaGando
3 Cases:
1. When the node is a leaf node
2. When the node has 1 child
3. When the node as 2 children
@BiancaGando
Case 1: a node with no children
@BiancaGando
Case 2: a node with 1 child
@BiancaGando
@BiancaGando
//Code here
@BiancaGando
Case 3: a node with 2 children
@BiancaGando
of Time Complexity
@BiancaGando
AVL Tree
Red-Black Tree
Splay Tree
By Bianca Gandolfo