摘要:
5555,又是DP。。。然后我又是DFS+record其实关键是理解题意,写出DFS代码就好了吧。。。。。map,int> record;class Solution {public: int numDistinct(string S, string T) { record.clear(); return vis(S, 0 , S.size() , T , 0 , T.size()); }private: int vis(string s , int s1 , int e1 , string t , int s2 , int e2) { ... 阅读全文
posted @ 2014-01-19 23:12 1957 阅读(298) 评论(0) 推荐(0) 编辑