摘要: //全排列 var arr = ["a", "b", "c", "d"]; //实现全排列 function AllPermuAndCombi(arr,length){ var Allresult=[]; for(var i=1;i<=length;i++){ Allresult=Allresult 阅读全文
posted @ 2018-03-18 21:43 laiso 阅读(189) 评论(0) 推荐(0) 编辑
摘要: <script> var proDuctNum = 5; var MaxCapicity = 15; var ValueArr = [4, 5, 10, 11, 13]; var Capicity = [3, 4, 7, 8, 9]; function Package_Value(Num, MaxC 阅读全文
posted @ 2018-03-18 21:38 laiso 阅读(414) 评论(0) 推荐(0) 编辑
摘要: <script> var proDuctNum = 5; var MaxCapicity = 15; var ValueArr = [4, 5, 10, 11, 13]; var Capicity = [3, 4, 7, 8, 9]; function Package_Value(Num, MaxC 阅读全文
posted @ 2018-03-18 21:35 laiso 阅读(707) 评论(0) 推荐(0) 编辑
摘要: var arr=["weeweadbshow","jhsaasrbgddbshow","ccbshow"]; function Longest(Arr){ //字符串长度排序,优先选择最短的字符串,尽可能的减少性能开支 Arr=String_ArraySort(Arr); var wholeArr= 阅读全文
posted @ 2018-03-18 21:32 laiso 阅读(733) 评论(0) 推荐(1) 编辑