We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 183f57f commit a4519f3Copy full SHA for a4519f3
python/392_Is_Subsequence.py
@@ -0,0 +1,11 @@
1
+class Solution:
2
+ def isSubsequence(self, s: str, t: str) -> bool:
3
+ for a in s:
4
+ if a in t:
5
+ for b in range(0, len(t)):
6
+ if a==t[b]:
7
+ t=t[b+1:]
8
+ break
9
+ else:
10
+ return(False)
11
+ return(True)
0 commit comments