Golang/Python to be used. Two strings are k-consecutive +if they are k-bonded and all contributing characters appear
Fantastic news! We've Found the answer you've been seeking!
Question:
Golang/Python to be used. Two strings are k-consecutive +if they are k-bonded and all contributing characters appear consecutively. For instance, “aabbccddXYZABeeffGg” and “Gfeeexyzab” are 1-, 2- and 3-consecutive. Define function IsConsecutive(k, s1, s2) in Golang or Python, returning true iff s1 and s2 are k-consecutive.
Related Book For
Posted Date: