Is it a subsequence?

A code exercise of about 10 minutes: read the statement, solve «Is it a subsequence?» in the browser and get a review like in a real interview.

Code · 10 min
Loading…

Statement

Write isSubsequence(s, t): return true if the characters of s appear in t in the same order, even if not next to each other ("ace" is in "abcde", "aec" isn't). The empty text is a subsequence of anything.