The task is to write a program that will fragment the lines of each file
back into its original format. In doing so, you need to find the parts that match each other as closely as possible. The end (or end of) a given part may match more than one part of the remaining parts, but only the two that match the most
characters. However, in order to avoid the task being too difficult, the first part of each line will always be on the first position on the line.
As of now I only done something that read my first .txt file and then save in to other .txt file. What do I need to do that I will be able to rearranged my content form the first .txt file?
enter image description here
The content form in the first .txt file looks like this: “110”, “01123”, “1011” and in the second .txt file should look like this: “1101123”.
jure janc is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.