![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
算法
文章平均质量分 51
coursefar
这个作者很懒,什么都没留下…
展开
-
邮票 连续整数
package algorithm;//邮票 连续 整数public class Succession { static int num = 5, m = 5; static int k ; static boolean find; static int log原创 2011-09-01 16:27:53 · 282 阅读 · 0 评论 -
字典序集合
public class PossibleSet { public static void main(String[] args) { int[] set = new int[5]; char原创 2011-09-01 18:13:48 · 293 阅读 · 0 评论 -
整数划分
package algorithm;public class SplitInt { public static void main(String[] args) { split(new int[6],6,0); } //剩 N 第 M 位 pu原创 2011-09-01 18:32:47 · 238 阅读 · 0 评论 -
全排列
public class AllSort { public static void main(String[] args) { int a[] = {1,2,3}; sort(a,0); } public static void swap(int i,原创 2011-09-01 17:36:40 · 153 阅读 · 0 评论 -
砝码称重
public class Poise { public static void main(String[] args) { int []poise = {1,2,5,10}; int []num = {1,1,原创 2011-09-01 18:05:24 · 209 阅读 · 0 评论 -
重建二叉树
package algorithm;class Node { Node left = null; Node right = null; char value;}public class BinaryTreeBuilder { /** * 根据前序遍历和中序遍历原创 2011-09-02 16:16:49 · 177 阅读 · 0 评论 -
从自然数1~N里任取R个数的可能组合
package algorithm;public class Combination { public static int n,r;//从N个里任取R个数的 public static void print(int[] arr){ for(int i原创 2011-09-02 15:36:24 · 665 阅读 · 0 评论