Starting from:

$20

ProgramDesign- Homework #1 Part 3 Solved

 Longest_common_prefix

Write a program that can find the longest common prefix string in an array of strings. If there is no common prefix, return “No longest common prefix”. The input words will be less than 100 words. The length of the word will be less than 100. The First input will let users choose whether it will be case sensitive. The first option (value of 1) is case sensitive, and the second option (value of 2) is case insensitive. If users choose case insensitive and the common prefix has both lowercase and uppercase, please output lowercase for the answer. The second input is the number of the words

More products