摘要:
来源 1 class Solution { 2 public int maxProduct(int[] nums) { 3 int n = nums.length; 4 int[] maxV = new int[n]; 5 int[] minV = new int[n]; 6 maxV[0] = n 阅读全文
摘要:
来源 重点1: 判断字符串s是否在List<String>中,即实现类似python中in方法 将List转为Set,然后用Set的contains方法 List转Set: Set<String> set = new HashSet(wordDict); 实现: 1 public boolean c 阅读全文