Ask your own question, for FREE!
MIT 6.00 Intro Computer Science (OCW) 8 Online
OpenStudy (anonymous):

Does anyone have an English explanation? (sorry) Problem 4. Write a function, called which takes two arguments: a target string and a key string. This function should return a tuple of all starting points of matches of the key to the target, such that at exactly one element of the key is incorrectly matched to the target. Complete the definition

OpenStudy (anonymous):

Consider case target: atgacatgcacaagtatgcat and key: atgc. In problem 3, we want to return starting points for matches with up to one substitution (i.e. zero or one). So we would return 5, for the case of zero substitutions since it identically matches the target. And we would get 0, for the case of one substitution, 'a' in place of 'c'. Problem 4 is asking for only the starting points of the latter situation. It wants you to return starting points strictly for matches with one substitution.

Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!
Can't find your answer? Make a FREE account and ask your own questions, OR help others and earn volunteer hours!

Join our real-time social learning platform and learn together with your friends!