MO640 - Multiple-choice question
Consider the following statements about a string s with n distinct characters:I. For s, there are 1 + n(n+1)/2 possible substrings.
II. For s, there are 2n possible subsequences.
III. For s, there are n + 1 possible prefixes.
- Only statement II is correct.
- Statements I and II are correct.
- Statements II and III are correct.
- Statements I and III are correct.
- None of the above
No comments:
Post a Comment