摘要: 分析: class Solution { public int subarrayBitwiseORs(int[] A) { Set<Integer> set = new HashSet<>(); Set<Integer> cur = new HashSet<>(); for(int num : A) 阅读全文
posted @ 2020-08-20 15:47 Sexyomaru 阅读(124) 评论(0) 推荐(0) 编辑
摘要: class Solution { public int getLengthOfOptimalCompression(String s, int k) { int n = s.length(); int[][] dp = new int[n+1][k+1]; // dp[i][j]:考虑前i个字符最多 阅读全文
posted @ 2020-08-20 15:41 Sexyomaru 阅读(356) 评论(0) 推荐(0) 编辑