392. Is SubsequenceEasy
Given two strings
s
andt
, returntrue
ifs
is a subsequence oft
, orfalse
otherwise.A subsequence of a string is a new string that is formed from the original string by deleting some (can be none) of the characters without disturbing the relative positions of the remaining characters. (i.e.,
"ace"
is a subsequence of"abcde"
while"aec"
is not).
- Problem
- Solutions