摘要:
就一个dp,别想歪了 dp[i]表示组成数字i的种数 但这题是真坑。。结果保证int内,不代表中间数字在int内 class Solution { public: long long dp[10010]; int combinationSum4(vector<int>& nums, int targ 阅读全文
摘要:
Arrays.sort(int[] a, int fromIndex, int toIndex) 这种形式是对数组部分排序,也就是对数组a的下标从fromIndex到toIndex-1的元素排序,注意:下标为toIndex的元素不参与排序 Arrays.fill( a1, value ); a1是一 阅读全文