Print the current permutation
for i in range ( n ) : NEW_LINE INDENT print ( arr [ i ] , end = " ▁ " ) NEW_LINE DEDENT print ( ) NEW_LINE if ( next_permutation ( arr ) == False ) : NEW_LINE break NEW_LINE