请列出由1和2组成的5位数的全部排列组合 比如11111 21211
问题描述:
请列出由1和2组成的5位数的全部排列组合 比如11111 21211
答
32种:11111,11112,11121,11122,11211,11212,11212,11222,12111,12112,12121,12122,12211,12212,122221,12222,21111,21112,21121,21122,21211,21212,21212,21222,22111,22112,22121,22122,22211,22212,222221,22222,...