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
-
806 Solvers
-
153 Solvers
-
Sum of odd numbers in a matrix
397 Solvers
-
Find the index of n in magic(n)
182 Solvers
-
Return fibonacci sequence do not use loop and condition
384 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!