Minimal Cyclic Shift

  • + 1 comment

    Don't worry. If k>=n-1, any two sequences of length n would be similar. So the real upper limit is that of n, which is 10^5.