There's a lot of tape though, and you know there's some good intelligence information here, so you write an program to determine the original messages after filtering howout the massive amounts of typos.
- all possible original messages (orderedordered from fewest to most words in message; there shall be no specified ordered for messages with the same number of words. If the intended message were
MY GRANDMOTHER HAS A LIFELONG PASSPORT
, the output should generate the following (going from 6 words to 9 words): MY GRANDMOTHER HAS A LIFELONG PASSPORT
MY GRAND MOTHER HAS A LIFELONG PASSPORT
MY GRANDMOTHER HAS A LIFE LONG PASSPORT
MY GRANDMOTHER HAS A LIFELONG PASS PORT
MY GRAND MOTHER HAS A LIFE LONG PASSPORT
MY GRAND MOTHER HAS A LIFELONG PASS PORT
MY GRANDMOTHER HAS A LIFE LONG PASS PORT
MY GRAND MOTHER HAS A LIFE LONG PASS PORT
NUAFCLEAIEOJRWARWESHEADAJIOWGUNDSUIVHERCSNZXAPITASAOIDLBUIJOVEMOLDINGIAS (ink tape)
AFIEOJWESAJIOWGSUIVHSNZXSAOIDJOVEMOIAS (correction tape)
NUCLEAR WARHEAD UNDER CAPITAL BUILDING (decoded messagemessages)
NUCLEAR WAR HEAD UNDER CAPITAL BUILDING
ASSLEDELPERIWECERSPDLLSACFSPTIVVOXATEIQPTREOIOSJFNMORROAIOW (ink tape)
ASDLIWERSPDFSPVOXIQPREOISJFNOAI (correction tape)
SLEEPER CELLS ACTIVATE TOMORROW (decoded messagemessages)
SLEEPER CELLS ACTIVATE TO MORROW
ASOIIJHAWQRATEMSDQPOYJKWEOABS (ink tape)
ASOIJWQRASDQPOKWEAS (correction tape)
I HATE MY JOB (decoded message)