摘要: link class Solution { public: int maxNonOverlapping(vector<int>& nums, int target) { unordered_map<int,int> pos; pos[0]=-1; int sum=0; int n=nums.size 阅读全文
posted @ 2020-08-10 10:44 feibilun 阅读(132) 评论(0) 推荐(0) 编辑
摘要: link class Solution { public: int longestAwesome(string s) { int n=s.size(); vector<int> dp(1<<10,n); int res=1; dp[0]=-1; int mask=0; for(int i=0;i<n 阅读全文
posted @ 2020-08-10 09:32 feibilun 阅读(150) 评论(0) 推荐(0) 编辑