diff --git a/lectures/Sep-13.md b/lectures/Sep-13.md index 8ec4751..8ed3d82 100644 --- a/lectures/Sep-13.md +++ b/lectures/Sep-13.md @@ -134,8 +134,8 @@ What is the time complexity? $O(h)$, where $h$ is the height of the tree. Insert into a binary search tree using the `find` method. Return the inserted node, or null if the key is already in the tree. -Solution: - +
+Solution: ```java public Node insert(K key) { Node n = find(key, root, null); @@ -154,6 +154,8 @@ Solution: return null; } ``` +
+ ## `remove` method of `BinarySearchTree`