Is Subsequence

Easy · Arrays & Strings · about 10 minutes

Asked at Meta, Amazon, Pinterest, Adobe, Google, Duolingo, Unity, Match Group.

Can you get s by crossing out zero or more characters of t while leaving the remaining characters in place? Return true if so.

Related guides