摘要: JAVA: int an = 0; public final int countArrangement(int N) { search(N, new HashSet<Integer>(), 0); return an; } private final void search(int n, Set<I 阅读全文
posted @ 2020-08-06 23:51 牛有肉 阅读(81) 评论(0) 推荐(0) 编辑
摘要: JAVA 分治: public final int mincostTickets(int[] days, int[] costs) { return minCost(days, costs, days.length - 1, new int[days.length]); } private fina 阅读全文
posted @ 2020-08-06 23:50 牛有肉 阅读(205) 评论(0) 推荐(0) 编辑