This function mainly calls recursive function distSumRec ( ) to generate distinct sum subsets . And finally prints the generated subsets .
def printDistSum ( arr , n ) : NEW_LINE INDENT s = set ( ) NEW_LINE distSumRec ( arr , n , 0 , 0 , s ) NEW_LINE DEDENT