java 一个数组中m个不同的数 需要分成n组
伊谢尔伦
伊谢尔伦 2017-04-18 10:50:45
0
2
604

java 一个数组中m个不同的数 需要分成n组,比如{1,5,7}分成2组:{1}{5,7};{5}{1,7};{7}{1,5},m>=n,这里n=2比较好举例,实际上是n>2情况居多,请大神支招java实现!!!求代码!!!

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(2)
大家讲道理

This is a permutation and combination problem

PHPzhong

Yes, this is the problem of dividing m by n. There is currently an implementation of m taking n, but the problem of dividing m by n has not found a Java implementation version. Please give me the code to implement it! !

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template