Input:
strA = "ATATATGCGATAT"
strB = "ATAT"
output:
0 2 9
I was looking for a way to find the starting positions in a string (strA), every time a pattern (strB) starts.
Input:
strA = "ATATATGCGATAT"
strB = "ATAT"
output:
0 2 9
I was looking for a way to find the starting positions in a string (strA), every time a pattern (strB) starts.