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 Solvers38
Suggested Problems
-
Maximum running product for a string of numbers
1713 Solvers
-
1187 Solvers
-
Reverse the Words (not letters) of a String
406 Solvers
-
Given a matrix, swap the 2nd & 3rd columns
823 Solvers
-
Find out the Gray Code for a Given Binary Number
91 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!