Let us conthe Tree shown in the above figure
Node root = newNode ( 10 ) ; root . left = newNode ( 20 ) ; root . right = newNode ( 30 ) ; root . left . left = newNode ( 40 ) ; root . left . right = newNode ( 50 ) ; root . right . right = newNode ( 70 ) ; Console . Write ( " Given ▁ Tree STRNEWLINE " ) ; preorder ( root ) ; struc = new List < Boolean > ( ) ; data = new List < int > ( ) ; EncodeSuccinct ( root ) ; Console . Write ( " STRNEWLINE Encoded ▁ Tree STRNEWLINE " ) ; Console . Write ( " Structure ▁ List STRNEWLINE " ) ;