write a method that returns the longest common prefix of
write a method that returns the longest common prefix of two strings. for example, the longest common prefix of distance and disinfection is dis. the header of the method is:def prefix(s1, s2)if the two strings have no common prefix, the method returns an empty string. write a main method that prompts the user to enter two strings and displays their common prefix.
Price Type: Negotiable
Total Proposals: 5
1 Current viewersl
55 Total views