摘要:
分析: 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
阅读(125)
评论(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
阅读(402)
评论(0)
推荐(0)

浙公网安备 33010602011771号