You are given a string s of length n and an integer k.
A cyclic rotation of s is obtained by shifting the characters of s cyclically by some number of positions.
The score of a string is defined as the number of indices i where i is equal to the character at index
Return the number of cyclic rotations of s that have a score strictly equal to k.
Constraints:
s.length
s only consists of lowercase English letters.
You are given a string s of length n and an integer k.
A cyclic rotation of s is obtained by shifting the characters of s cyclically by some number of positions.
The score of a string is defined as the number of indices i where i is equal to the character at index
Return the number of cyclic rotations of s that have a score strictly equal to k.
Constraints:
s.length
s only consists of lowercase English letters.