Problem 42705. Is It a Snake?
Solution Stats
Problem Comments
Solution Comments
-
1 Comment
Similar to Solution Solution 814072, this solution would fail a test with a = [2 1 1 1].
-
2 Comments
this solution would fail a test of the form a=[2 1 1 1];
I added [2 1 1 1] as a test.
-
3 Comments
This solution passes the test suite when I run it on my machine. Does anyone know why it would fail when I submit it to Cody? The online test suite shows only red X marks and does not provide any feedback.
"padarray" comes from Image Processing Toolbox
Thanks.
Problem Recent Solvers37
Suggested Problems
-
1389 Solvers
-
Back to basics 21 - Matrix replicating
1185 Solvers
-
Generate N equally spaced intervals between -L and L
706 Solvers
-
697 Solvers
-
150 Solvers
More from this Author50
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!