摘要:
public class test12{ //数组解决大数问题 by myself public static void printToN1(int n){ int[] array = new int[n]; while(increment(array, 0,... 阅读全文
posted @ 2014-08-22 23:12
seven7seven
阅读(174)
评论(0)
推荐(0)
摘要:
public class test11{ private static boolean invalidInput = false;//指示输入是否非法 public static double power(double base, int exponent){ if(bas... 阅读全文
posted @ 2014-08-22 20:01
seven7seven
阅读(184)
评论(0)
推荐(0)
摘要:
public class test243{ //常规解法 public static int findOnesOfBinary1(int n){ int cnt = 0; int flag = 1; while(flag!=0){ ... 阅读全文
posted @ 2014-08-22 17:51
seven7seven
阅读(100)
评论(0)
推荐(0)
摘要:
public class test2411{ //员工年龄排序 by myself 时间O(n) 空间O(n) public static void sortAges(int[] ages){ int[] array = new int[100];//正常员工年龄的取值范围... 阅读全文
posted @ 2014-08-22 14:02
seven7seven
阅读(142)
评论(0)
推荐(0)
摘要:
public class test231{//从左下角或右上角开始查找 bymyself public static boolean findN(int[][] array, int n){ if(array==null) return false; int ... 阅读全文
posted @ 2014-08-22 10:24
seven7seven
阅读(152)
评论(0)
推荐(0)

浙公网安备 33010602011771号