[solved] – Question 84140
the user prints number of string and each string’s length then the program prints every prefix that starts with the first letter (for example the string (abab) the prefixes are: a ab aba abab)
if we have more than a string and they have a common prefix it’s printed only one time (for example the strings aaba and aabb -the prefixes are a aa aab aaba aabb
Example:
Please enter the size of the strings set:
input:2
Please enter the strings set (n, string):
input:2 aa
input:3 aba
The prefixes of the strings set are:
a
aa
ab
aba
Expert Answer
OR

