text: Returns maximum sum with adjacent levels not allowed . This function mainly uses getSumAlternate ( )
code: def getSum ( root ) : NEW_LINE INDENT if ( root == None ) : NEW_LINE INDENT return 0 NEW_LINE DEDENT DEDENT