10 2022 档案
摘要:找规律 , 除了一行 和 两行需要特殊处理之外,其他的规律是一样的。 /* class Solution { public: string convert(string s, int numRows) { int len = s.size(); string ret_str(s); if(numRo
阅读全文
摘要:C++ 版本的滑动窗口解决方案 class Solution { public: int lengthOfLongestSubstring(string s) { if(s.empty()) return 0; unordered_map<char,int> sub_map; int left=0;
阅读全文