摘要: public class MergeTwoSortedArrays { public static int[] merge(int[] a, int[] b) { int lena = a.length; int lenb = b.length; int[] c = new int[lena + l 阅读全文
posted @ 2017-08-31 15:36 yangchunchun 阅读(307) 评论(0) 推荐(0) 编辑
摘要: http://www.cnblogs.com/gongjian/p/6121518.html 阅读全文
posted @ 2017-08-31 15:26 yangchunchun 阅读(1665) 评论(0) 推荐(0) 编辑
摘要: 经常会遇到字符串全排列的问题。例如:输入为{‘a’,’b’,’c’},则其全排列组合为abc,acb,bac,bca,cba,cab。对于输入长度为n的字符串数组,全排列组合为n!种。 package Bayes; public class RecursionTree { public static 阅读全文
posted @ 2017-08-31 14:51 yangchunchun 阅读(2968) 评论(0) 推荐(0) 编辑