Unfortunately the FFT based solution using a binary expansion of 'n' won't be Cody-optimal :-)
902 Solvers
Given a window, how many subsets of a vector sum positive
754 Solvers
Find Index of maximum Value and maximum Value of a vector
146 Solvers
379 Solvers
281 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!