Exponetnital complexity n * ( 2 ^ ( n - 1 ) ) for bit
for i in range ( bt ) : NEW_LINE INDENT temp = toBinary ( i ) + "0" NEW_LINE j = 0 NEW_LINE x = n - len ( temp ) NEW_LINE while ( j < x ) : NEW_LINE INDENT temp = "0" + temp NEW_LINE j += 1 NEW_LINE DEDENT j = 0 NEW_LINE x = 0 NEW_LINE y = - 1 NEW_LINE sp = " " NEW_LINE tp = " " NEW_LINE flag = 0 NEW_LINE while ( j < n ) : NEW_LINE INDENT sp += st [ j ] NEW_LINE if ( temp [ j ] == '1' ) : NEW_LINE INDENT tp += sp + ' , ' NEW_LINE y = int ( sp ) NEW_LINE DEDENT DEDENT DEDENT