摘要: class Solution { public: bool isScramble(string s1, string s2) { int n=s1.size(); vector<vector<vector<bool> > >f(n,vector<vector<bool>>(n,vector<bool 阅读全文
posted @ 2023-05-10 16:47 穿过雾的阴霾 阅读(12) 评论(0) 推荐(0)
摘要: 暴力 枚举区间起点 i,对于每一个 i,找到最大的 j ,满足 ij 区间和<target class Solution { public: vector<vector<int> > findContinuousSequence(int sum) { vector<vector<int> > res 阅读全文
posted @ 2023-05-10 14:59 穿过雾的阴霾 阅读(11) 评论(0) 推荐(0)
摘要: class Solution { public: vector<int> findNumbersWithSum(vector<int>& nums, int target) { unordered_set<int> hashtable; for(auto i:nums) { if(hashtable 阅读全文
posted @ 2023-05-10 14:12 穿过雾的阴霾 阅读(12) 评论(0) 推荐(0)