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!!
Arrange Vector in descending order
4085 Solvers
Project Euler: Problem 9, Pythagorean numbers
282 Solvers
Number of 1s in a binary string
2827 Solvers
Set the array elements whose value is 13 to 0
941 Solvers
252 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!