subject

Consider three strings instr1, instr2 and instr3 having only lowercase alphabets. Identify a string, outstr with the smallest possible length such that when strings instr1, outstr and instr2 are concatenated in the same order, instr3 becomes a substring of the concatenated string. Print the smallest possible length of (instr1 + outsrt + instr2) satisfying the given criteria. The string outstr can also be an empty string
Input format
The first, second and third line contain strings insrt1,instr2 and instr3 respectivley
Read the input from the standard input stream.
Output format
Print the smallest possible length of (instr1 + outstr + instr2) satisfying the given criteria.
Print the output to the standard output stream.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 04:00
Another name for addicting games.com
Answers: 1
question
Computers and Technology, 23.06.2019 12:00
Using the list, you can select the number of photos that will appear on each slide. a. theme b. frame shape c. pictures in album d. picture layout
Answers: 1
question
Computers and Technology, 23.06.2019 23:40
4. what is the reason for including the following code snippet in the header file animal.h? #ifndef animal_h #define animal_h class animal { public: animal(); animal(double new_area_hunt); void birth(); void hunt(double new_area_hunt); void death(); double get_area_hunt() const; private: double area_hunt; }; #endif
Answers: 3
question
Computers and Technology, 24.06.2019 00:30
Match the sentence fragment in the first column with the appropriate ending in the second column. a little per favore?
Answers: 1
You know the right answer?
Consider three strings instr1, instr2 and instr3 having only lowercase alphabets. Identify a string,...
Questions
question
Chemistry, 04.12.2020 04:40
question
Arts, 04.12.2020 04:40
question
English, 04.12.2020 04:40
question
Mathematics, 04.12.2020 04:40
Questions on the website: 13722363