摘要: 1 class Solution { 2 public int combinationSum4(int[] nums, int target) { 3 int[] res = new int[target + 1]; 4 res[0] = 1; 5 for(int i = 1; i 0) { 8 ... 阅读全文
posted @ 2018-08-02 23:18 jasoncool1 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 打印字符串的一个字符用str.charAt()substring用str.subString() 要用这个字母之前几个能否组成word这样来考虑 https://leetcode.com/problems/word-break/discuss/43790/Java-implementation-us 阅读全文
posted @ 2018-08-02 05:20 jasoncool1 阅读(259) 评论(0) 推荐(0) 编辑