Back to problems

Is one string a subsequence of another?

Algorithm · Atlassian · Easy

Given lowercase English strings s and t, decide whether s appears as a subsequence within t. Both strings contain only lowercase letters, and t will typically be longer than s. Example Input: dog adobg Output: True

Checking your access…