Search⌘ K
AI Features

Solution: Number of Matching Subsequences

C# solution for the Number of Matching Subsequences problem using the Hash Maps pattern.

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 5104\leq 5 * 10^4 ...