You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Here, we use dictionary to make the work easier. A Counter() can also be used to make it easy. Just count the slices of k-length slices in the string s and return the sum of slices appearing more than once.