未验证 提交 7c153d25 编写于 作者: K KEQI HUANG 提交者: GitHub

Update 438._Find_All_Anagrams_in_a_String.md

上级 243ef381
......@@ -17,10 +17,10 @@ Easy
```python
python
class Solution(object):
def findAnagrams(self, s, p):
```
class Solution(object): # 此法超时
   def findAnagrams(self, s, p):
"""
:type s: str
:type p: str
......@@ -32,6 +32,7 @@ class Solution(object):
res.append(i)
return res
```
于是用双指针,left和right都从0开始往后遍历
```python
class Solution(object):
......@@ -62,8 +63,3 @@ class Solution(object):
Author: Keqi Huang
If you like it, please spread your support
![Support](https://github.com/Lisanaaa/myTODOs/blob/master/WechatIMG17.jpeg)
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册