construct a tree
root = newNode ( 1 ) NEW_LINE root . left = newNode ( 2 ) NEW_LINE root . right = newNode ( 3 ) NEW_LINE root . left . left = newNode ( 4 ) NEW_LINE root . right . left = newNode ( 5 ) NEW_LINE root . right . right = newNode ( 6 ) NEW_LINE root . right . left . right = newNode ( 7 ) NEW_LINE root . right . right . right = newNode ( 8 ) NEW_LINE root . right . left . right . left = newNode ( 9 ) NEW_LINE root . right . right . right . right = newNode ( 10 ) NEW_LINE root . right . right . right . right . left = newNode ( 11 ) NEW_LINE result = maxOddLevelDepth ( root ) NEW_LINE if ( result == INT_MAX ) : NEW_LINE INDENT print ( " No ▁ leaf ▁ node ▁ at ▁ odd ▁ level " ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( result , end = " " ) NEW_LINE print ( " ▁ is ▁ the ▁ required ▁ depth ▁ " ) NEW_LINE DEDENT