Driver code
public static void Main ( String [ ] args ) { Node root = null ; root = insert ( root , 20 ) ; insert ( root , 10 ) ; insert ( root , 5 ) ; insert ( root , 15 ) ; insert ( root , 30 ) ; insert ( root , 25 ) ; insert ( root , 35 ) ; Console . WriteLine ( " Inorder ▁ before ▁ Deleting " + " the ▁ leaf ▁ Node . ▁ " ) ; inorder ( root ) ; Console . WriteLine ( ) ; leafDelete ( root ) ; Console . WriteLine ( " INorder ▁ after ▁ Deleting " + " the ▁ leaf ▁ Node . ▁ " ) ; inorder ( root ) ; } }