6 kyu
Hand-held text scanner
Description:
When no more interesting kata can be resolved, I just choose to create the new kata, to solve their own, to enjoy the process --myjinxin2015 said
Description:
We have a hand-held text scanner. It is very simple to use, move it from the left to the right on the text that needs to be scanned, and we'll get such the results:
["trainin","ning in","in code","odewars"]
We can see, the adjacent scan results have some characters that are duplicate, and your task is to eliminate duplicate characters to get a full scan of the text.
fullScan(["trainin","ning in","in code","odewars"])
should return: "training in codewars"
In order to make kata more interesting, our text is not always a single line, sometimes it is a multi line text. See examples:
part1= |part2= | part3= | part4= | part5=
`trainin | `ning in | `in code | `odewars | `wars
give me` | me a n` | nice s` | e solut` | olution`
fullScan([part1,part2,part3,part4,part5])
should return:
`training in codewars
give me a nice solution`
You can assume that all inputs are valid.
A bit difficulty, A bit of fun, happy coding ;-)
Algorithms
Puzzles
Similar Kata:
Stats:
Created | Nov 20, 2016 |
Published | Nov 20, 2016 |
Warriors Trained | 216 |
Total Skips | 6 |
Total Code Submissions | 544 |
Total Times Completed | 50 |
JavaScript Completions | 50 |
Total Stars | 13 |
% of votes with a positive feedback rating | 98% of 25 |
Total "Very Satisfied" Votes | 24 |
Total "Somewhat Satisfied" Votes | 1 |
Total "Not Satisfied" Votes | 0 |
Total Rank Assessments | 3 |
Average Assessed Rank | 5 kyu |
Highest Assessed Rank | 5 kyu |
Lowest Assessed Rank | 5 kyu |