摘要: class Solution { public: int longestValidParentheses(string s) { int n = s.size(),i = 0,maxResult = 0,result = 0,t,tmax,tsum; if(n==0)return 0; stack< 阅读全文
posted @ 2022-01-02 19:57 智人心 阅读(35) 评论(0) 推荐(0)
摘要: class Solution { public: vector<int> findSubstring(string s, vector<string>& words) { vector<int>v; string t; int n = s.size(),n2 = words.size(),n3 = 阅读全文
posted @ 2022-01-02 15:30 智人心 阅读(32) 评论(0) 推荐(0)