Problem 42705. Is It a Snake?
32.4% Correct | 67.6% Incorrect
Last Solution submitted on Jan 08, 2023
Peng Liu on 26 Jan 2016
Similar to Solution Solution 814072, this solution would fail a test with a = [2 1 1 1].
Alfonso Nieto-Castanon on 26 Jan 2016
this solution would fail a test of the form a=[2 1 1 1];
Ned Gulley on 27 Jan 2016
I added [2 1 1 1] as a test.
Brian Hannan on 18 Jan 2016
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.
Jan Orwat on 19 Jan 2016
"padarray" comes from Image Processing Toolbox
Brian Hannan on 20 Jan 2016
Problem Recent Solvers38
Increment a number, given its digits
Remove the two elements next to NaN value
Hexagonal numbers on a spiral matrix
More from this Author50
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!