Please implement a function to generate the 3-digits numbers with no duplicate digits and no duplicate permutation. For example: 122 is not allowed and 123 321 is not allow, only output one of the permutations.
Anonymous
def combination(): for i in range(1,10): for j in range(i+1, 10): for k in range(j+1, 10): print("%d%d%d" % (i,j,k)) combination()
Check out your Company Bowl for anonymous work chats.