摘要: #include #include #include #include using namespace std; //最长公共子串 class Solution { public: int longestSubstring(string x, string y) { if (x.size() > y.size()) swap(x, y); // 题目要求短串优先 ... 阅读全文
posted @ 2019-04-01 11:25 Joker1937 阅读(164) 评论(0) 推荐(0) 编辑