You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In a string of length n, how many of the following are there?
1. Prefixes.
2. Suffixes.
3. Proper prefixes.
4. ! Substrings.
5. ! Subsequences.
The current solution for the last part of the question is Σ(i=0,n) C(n, i), but it can be simplified as 2^n since each position can be either deleted or not.
The text was updated successfully, but these errors were encountered:
The current solution for the last part of the question is
Σ(i=0,n) C(n, i)
, but it can be simplified as2^n
since each position can be either deleted or not.The text was updated successfully, but these errors were encountered: