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
1
Expert's answer
2019-01-09T15:02:21-0500
Dear fatmeh, your question requires a lot of work, which neither of our experts is ready to perform for free. We advise you to convert it to a fully qualified order and we will try to help you. Please click the link below to proceed: Submit order
Numbers and figures are an essential part of our world, necessary for almost everything we do every day. As important…
APPROVED BY CLIENTS
Finding a professional expert in "partial differential equations" in the advanced level is difficult.
You can find this expert in "Assignmentexpert.com" with confidence.
Exceptional experts! I appreciate your help. God bless you!
Comments
Leave a comment