摘要: class Solution {private: int shd_cnt[256]; int cur_cnt[256];public: string minWindow(string S, string T) { int slen = S.length(); ... 阅读全文
posted @ 2014-09-16 20:54 卖程序的小歪 阅读(159) 评论(0) 推荐(0) 编辑
摘要: 记忆搜索总是一个快速的方法(这里假设测试用例中s1和s2的长度都不超过(2^16) - 1), 当然用记忆搜索的,往往就可以写成DP的形式的,不用担心大数据时栈溢出了#include #include #include #include #include using namespace std;cl... 阅读全文
posted @ 2014-09-16 18:50 卖程序的小歪 阅读(204) 评论(0) 推荐(0) 编辑