Search⌘ K
AI Features

Number of Matching Subsequences

Try to solve the Number of Matching Subsequences problem.

We'll cover the following...

Statement

Given a string s and an array of strings words, return the number of strings in words that are subsequences of s.

A string is a subsequence of s if it can be formed by deleting zero or more characters from s without changing the relative order of the remaining characters.

Constraints:

  • 11 \leq s.length 51 ...