摘要:
https://leetcode.com/problems/number-of-longest-increasing-subsequence/discuss/107293/JavaC++-Simple-dp-solution-with-explanation 每次记载最大长度 然后最后遍历 把等于最 阅读全文
posted @ 2018-10-30 10:15
jasoncool1
阅读(110)
评论(0)
推荐(0)
摘要:
sort之后 看有没有可以等于sum/2的 阅读全文
posted @ 2018-10-30 09:35
jasoncool1
阅读(140)
评论(0)
推荐(0)
摘要:
1 class Solution { 2 int[] colors; 3 public boolean possibleBipartition(int N, int[][] dislikes) { 4 if(dislikes.length == 0) return true; 5 HashMap> graph = new HashMap(... 阅读全文
posted @ 2018-10-30 05:12
jasoncool1
阅读(231)
评论(0)
推荐(0)
摘要:
dp[个数][加起来的和] = 达到的次数 阅读全文
posted @ 2018-10-30 04:21
jasoncool1
阅读(138)
评论(0)
推荐(0)