Driver Code
public static void Main ( String [ ] args ) { int ind = 0 ; int k = 3 , n = 10 ; int [ ] preorder = { 1 , 2 , 5 , 6 , 7 , 3 , 8 , 9 , 10 , 4 } ; Node root = BuildKaryTree_1 ( preorder , n , k , ind ) ; Console . WriteLine ( " Postorder ▁ traversal ▁ of ▁ " + " constructed ▁ full ▁ k - ary ▁ tree ▁ is : ▁ " ) ; postord ( root , k ) ; Console . WriteLine ( ) ; } }