Unfortunately the FFT based solution using a binary expansion of 'n' won't be Cody-optimal :-)
1262 Solvers
1905 Solvers
151 Solvers
309 Solvers
285 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!