2022年1月2日
摘要: 1. 双指针法(定长,变长); 滑动窗口:3. 无重复字符的最长子串 1 //滑动窗口 + 二分 2 3 class Solution { 4 public: 5 bool check(int len, string s) { 6 vector<int> cnt(256, 0); 7 int k = 阅读全文
posted @ 2022-01-02 21:35 学海一扁舟 阅读(58) 评论(0) 推荐(0) 编辑