How many substrings of different lengths (non-zero) can be formed from a…
GATE · 1998 · CS · Question 1 subparts
How many substrings of different lengths (non-zero) can be formed from a character string of length n?
- A.
n
- B.
n^2
- C.
2^n
- D.
n(n+1)/2
Attempted by 70 students.
Sign up free to check your answer
Sign up freeLoading lesson…