Deletion in Binary Search Tree (Implementation)

Introduction #

Let’s implement the delete function for BSTs. We’ll build upon the code as we cater for each case.

1. Deleting an empty tree #

Let’s start with a skeleton function definition and cater for the first case. We return false if the root is NULL.

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.