Driver code
arr = [ 3 , 6 , 7 , 13 ] NEW_LINE n = len ( arr ) NEW_LINE if ( solve ( arr , 0 , 0 , n ) ) : NEW_LINE INDENT print ( " YES " ) NEW_LINE DEDENT else : NEW_LINE INDENT print ( " NO " ) NEW_LINE DEDENT