Unfortunately the FFT based solution using a binary expansion of 'n' won't be Cody-optimal :-)
Replace NaNs with the number that appears to its left in the row.
2032 Solvers
Back to basics 2 - Function Path
164 Solvers
Back to basics 17 - white space
247 Solvers
Permute diagonal and antidiagonal
225 Solvers
208 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!