Skip to content

Commit 241c1c6

Browse files
committed
chore: delete an item
1 parent 78f1bcb commit 241c1c6

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

README.md

+22
Original file line numberDiff line numberDiff line change
@@ -702,8 +702,30 @@ Is Binary Search Tree `Coding Files`
702702

703703
#### Delete node from Binary Search Tree (BST)
704704

705+
![](https://i.imgur.com/Yyfeq6I.png)
705706

707+
There are 3 conditions you should think:
706708

709+
![](https://i.imgur.com/gkpFD2Y.png)
710+
711+
Delete where there is no children
712+
713+
![](https://i.imgur.com/YaHQ56y.png)
714+
715+
Delete node where there is 1 child
716+
717+
![](https://i.imgur.com/sIiArUH.png)
718+
719+
Delete node where there are 2 children
720+
721+
![](https://i.imgur.com/e8aMAaA.png)
722+
723+
Delete 15 from BST
724+
725+
![](https://i.imgur.com/yqOvCXx.png)
726+
727+
- [Question](https://codepen.io/roopkt/pen/wvJRxJp?editors=0010)
728+
- [Answer](https://codepen.io/roopkt/pen/rNyovyL?editors=0010)
707729

708730
### Recursion Interview Questions
709731

0 commit comments

Comments
 (0)