alonsovidales / facebook-programming-challenges

This is a compilation of possible questions to be solved in order to be hired by Facebook
159 stars 54 forks source link

input/output is wrong #3

Open vic-kailiu opened 11 years ago

vic-kailiu commented 11 years ago

Hi,

As "there" is "51272", which means "r" is "7" but in "thorns" ("514678"), "r" is "6".

So it should be 514768 instead, right?

alonsovidales commented 11 years ago

According to the text, you can use different relations between lines, is necessary only to keep the coherence on the same line: "You will be given multiple encoded messages to decode (one per line) and they may use different substitution ciphers."

vic-kailiu commented 11 years ago

oh, yah, my bad ;)

BTW, for the finding all the sub-sequence one, you might miss an 'a' at the end? I got 69 instead of 71 by using the input, after I append the 'a' at the end, the result is 71