Shifting all 1 ' s ▁ to ▁ MSB ▁ ▁ and ▁ 0' s to LSB
num += ( 1 << j ) NEW_LINE print ( num , end = " " ) NEW_LINE i += 1 NEW_LINE if ( N > 0 ) : NEW_LINE print ( " , ▁ " , end = " " ) NEW_LINE N -= 1 NEW_LINE