website: move into monorepo

This commit is contained in:
Yangshun Tay
2022-10-01 08:18:25 +08:00
parent 0475efce3c
commit 7f621eb8a2
196 changed files with 3181 additions and 9284 deletions

View File

@@ -0,0 +1,13 @@
def is_subsequence(s, t):
"""
:type s: str
:type t: str
:rtype: bool
"""
if len(s) > len(t):
return False
matched_s = 0
for char in t:
if matched_s < len(s) and s[matched_s] == char:
matched_s += 1
return matched_s == len(s)