Count Distinct Subsequences

1. You are given a string.
2. You have to print the count of distinct and non-empty subsequences of the given string.

Note -> String contains only lowercase letters.
Input Format
A String
Output Format
A number
Question Video
Constraints
1 <= length of string <= 60
Sample Input
abc
Sample Output
7


  • Asked in Companies
  • Related Topics






Video Solution

Code Solution

Run
 
Run
Id Name