Good problem. You should generalise it with more tests (size of the matrix, different gap...).
I suspect that my solution isn't correct.
This doesn't work..Good for cody!!
Project Euler: Problem 6, Natural numbers, squares and sums.
1022 Solvers
1144 Solvers
703 Solvers
Determine the number of odd integers in a vector
435 Solvers
666 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!