Minimal Cyclic Shift

  • + 0 comments

    I think this problems requires using FFT to calculate convolutions in O(n*log(n)) time. Taking the kth-order difference is equivalent to a convolution of a[n] and b[n] with the combinatorial numbers.