Distinct Subsequences at Salesforce

Hard51.5% acceptance

This problem has 62.5% frequency at Salesforce.

Problem Description

Given two strings s and t, return _the number of distinct_ **_subsequences_** _of_ s _which equals_ t. The test cases are generated so that the answer fits on a 32-bit signed integer.

Read full problem and hints

Topics

Also asked at 14 companies


More Salesforce Questions

View all Salesforce questions