没看答案。
class Solution:
def isSubsequence(self, s: str, t: str) -> bool:
'''
指针i指向s,匹配一个字符前进一位;
指针j指向t,一直前进。
'''
m, n = len(s), len(t)
i = j = 0
while i < m and j < n:
if t[j] == s[i]:
i += 1
j += 1
return True if i == m else False