Search⌘ K
AI Features

Distinct Subsequences

Distinct Subsequences gives you two strings and asks you to return how many different subsequences of the first match the second string exactly, preserving character order.

Statement

Given two strings, s and t, determine how many distinct subsequences of s match t exactly. ...