```
class Solution(object):
def isSubsequence(self, s, t):
i=0
ctr=0
if(len(s) > len(t)): return False
if(len(s)== 0): return True
while(i < len(s)):
if(s[i]== t[ctr]):
i+=1
ctr+= 1
if(ctr == len(t) and i < len(s)):
return False
return True
```