Return True if s is a subsequence of t: you can get s by deleting some characters of t without changing the order of the others. "ace" is a subsequence of "abcde"; "aec" is not.
Example 1
Input:
is_subsequence('ace', 'abcde')
Output:
True
Example 2
Input:
is_subsequence('aec', 'abcde')
Output:
False
0 <= len(s) <= 1000000 <= len(t) <= 200000No results yet
Run your code to check it against the examples, or submit to run every test.