I dont have any code, because i actually have no idea how to solve this problem. So i'll be happy if you can help me come out with some algorithm or i don't know.
I have a list filled by letters and two 0
's. Zero is coding two letters in the word. Somewhere in this list is a word from file. This file is filled by different czech words (pretty big one).
I need to find a word from file in list and decode zeroes letters in it
Example input:
['a', 't', '0', 'l', 'u', 'r', 'i', '0', 'r', 'x']
Example of data in file: (normally its 32000 words)
- telepatech
- telepatie
- teleport
- teleportovala
teleportovat
teleportujete
- telepsychickou
- teleskop
- teleskopu
- teletextem
- teletina
- teletou
- televizi
- tellur
- telurid
- tematicky
- tematizace
- temena
Desired Output:
telurid