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!!
Calculate the Levenshtein distance between two strings
464 Solvers
Test if a Number is a Palindrome without using any String Operations
181 Solvers
866 Solvers
275 Solvers
561 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!