This is the snippet I have for FFT. But I feel it is slow in many cases.
One example is http://codeforces.me/problemset/submission/958/41610928 which takes nearly 3.85 seconds to pass for n=200000
Can somebody help me to optimise it.
Thanks.
Help With FFT
This is the snippet I have for FFT. But I feel it is slow in many cases.
One example is http://codeforces.me/problemset/submission/958/41610928 which takes nearly 3.85 seconds to pass for n=200000
Can somebody help me to optimise it.
Thanks.