Let's say I have the following two strings: "Hey there"
and "there is a ball"
I want the output to be True
, because the first one ends with "there"
and the second one begins with "there"
.
Also, it would be helpful if I could know the length of the overlap.