摘要:
Linux下使用两个进程,交替控制输出1-10之间的数 #include<iostream> using namespace std; #include <unistd.h> #include <cstdio> #include <cstring> #include <stdlib.h> #incl 阅读全文
posted @ 2020-07-13 11:08
知道了呀~
阅读(547)
评论(0)
推荐(0)
摘要:
从头开始遍历字符串,对每一个遍历过的字符判断是否被标记过,若标记过,则更新左边界le=vis[temp]+1,同时更新当前不重复子串的长度;否则用数组下标进行标记,不断右移右边界ri,更新最大长度 class Solution { public: int lengthOfLongestSubstri 阅读全文
posted @ 2020-07-13 10:17
知道了呀~
阅读(260)
评论(0)
推荐(0)

浙公网安备 33010602011771号