摘要:
原题点这里 取三个数,使和为0,输出所有的组合。各个组合之间不能重复。 这是个稍微复杂一点的逻辑题。它要求所有的组合不能重复。我们很容易想到三个循环嵌套,分别取三个数,判断加和是否为0,如果为0,判断是否重复。其复杂度为n^3. public static List<List<Integer>> t 阅读全文
摘要:
//创建日历对象 Calendar calendar = Calendar.getInstance(); //得到当前的年月日 final int year = calendar.get(Calendar.YEAR);//得到年份 final int monthOfYear = calendar.g 阅读全文