Is one string a subsequence of another?

Given two strings s and t, determine if s is a subsequence of t. You may assume that there is only lowercase English letters in both strings s and t. The length of t is generally larger ...

Example

Unlock to view complete problem details

and practice with sample input/output

Was this article helpful?

View Test Cases & Run Code requires membership

Standard Input
Execution Result: