Given string S, and let K be the minimum number of rotations required to get the same string.↵
↵
For Example:↵
(1) For S = "aaaa", K = 1↵
(2) For S = "abcabc", K = 3↵
(3) For S = "abcdef", K = 6↵
↵
Now my question is, can there be any string for which K > len(S)/2 and K < len(S) ? If not, can someone please help me prove it?
↵
For Example:↵
(1) For S = "aaaa", K = 1↵
(2) For S = "abcabc", K = 3↵
(3) For S = "abcdef", K = 6↵
↵
Now my question is, can there be any string for which K > len(S)/2 and K < len(S) ? If not, can someone please help me prove it?