Rosalind - Finding a Spliced Motif

rosalind

Problem:

Please find the problem here.

Solution:

To find the corresponding indexes, we initialize two pointers to the beginning of both strings. Walk the sequence pointer one by one, and walk the subsequence pointer only when there is a match. This way we will find all the indexes.

Code: