Added 'Delete' method to Binary Tree

This commit is contained in:
2022-04-14 21:55:59 +01:00
parent 1c14ff75d6
commit 8ac85d8a1f
2 changed files with 63 additions and 2 deletions

View File

@ -119,10 +119,10 @@ tree.Add(6);
tree.Add(2);
tree.Add(3);
tree.Add(1);
tree.Add(4);
tree.Add(8);
tree.Add(7);
var x = tree.Find(2);
var x = tree.Delete(4);
Console.ReadLine();