Jingwei Zuo

Results 3 comments of Jingwei Zuo

> > 第2和第3题的 // 判断左侧窗口是否要收缩 while (right - left >= t.size()) { 这里判断条件应该有误,在right - left > t.size()时,此时得到的序列是不满足题目要求的 > > 哈哈哈,这里的确是个思维误区,也不用二楼说的加个条件,我想了一天,还专门把代码跑了一遍发现没错。 问题出在这里窗口右边走一步,左边立即缩短。我们顺着之前的模板思考以为先是右边界一直走到包含子串再移动左边界,而这里左边界其实早就动起来了,一直保持着子串长度左右! > 的确,东哥的框架可以直接套用 不过为了方便理解 也可以先判断窗口大小,再更新结果;Python代码如下 ## Python 438. Find All...

### LC528 Python 解法 左右闭合边界 注意由于是随机pick index,故测试结果可有多种 ```Python3 class Solution: def __init__(self, w: List[int]): #initialize the prefix sum self.pre_sum = [0] * (len(w) + 1) for i in range(len(w)): self.pre_sum[i...

The same issue happened to me when running on the Mac. I have a M1 chip. Do you have any updates for MKL on the Mac? @mdouze @algoriddle Thank you!