Question: please answer quickly! Will leave positive review! Thank you! Problem 2 (20pts): Your neighbor found a text file in an old computer they found in
please answer quickly! Will leave positive review! Thank you!
Problem 2 (20pts): Your neighbor found a text file in an old computer they found in their house. They are eager to decipher it. They have figured out that two words are interleaved at a time. For example the first two words in this description would be: The rules appear to be that two words are interleaved together and that if one word is longer than another, the the shorter word will have a space where it's word would normally be. So, for another example "I am" would become An example where the words are the same length would be "The dog" Describe the algorithm (10pts) and write a method (10pts) that takes a string of 2 interleaved words as described above and returns a string with them decoded
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
