10 2022 档案

摘要:找规律 , 除了一行 和 两行需要特殊处理之外,其他的规律是一样的。 /* class Solution { public: string convert(string s, int numRows) { int len = s.size(); string ret_str(s); if(numRo 阅读全文
posted @ 2022-10-06 00:45 danieldai 阅读(21) 评论(0) 推荐(0) 编辑
摘要:C++ 版本的滑动窗口解决方案 class Solution { public: int lengthOfLongestSubstring(string s) { if(s.empty()) return 0; unordered_map<char,int> sub_map; int left=0; 阅读全文
posted @ 2022-10-04 19:37 danieldai 阅读(24) 评论(0) 推荐(0) 编辑