Quiz – S2M1 Last

Consider a problem of finding a secret message hidden inside a long string. For example, you are looking for the message “swordfish” inside the meaningless string “pqsoiwoqcrldfweiqwsh”, and it turns out that it is there: pqsoiwoqcrldfweiqwsh. But, if you’re looking for the message “ball” in the string “lallaby”, it is not there.

Basically, you are given two strings  and  (in the first example,  = “swordfish” and  = “pqsoiwoqcrldfweiqwsh”), and you’re asked whether all the characters of  can be found in the same order as they appear in , yes or no.

Do NOT follow this link or you will be banned from the site!