Please show me the unique full size snake in your example, several small snakes of 1s looked at me.
Now saw the snake, thanks.
You need to change the function name to "your_fcn_name" instead of the default "plane" to get it to work with the test suite.
You need to show the general snake shape so that everyone gets a better understanding of what the question is asking.
rename function in answer
yeah, it depends on what your motivation is. If you want a low complexity, the puzzle is to match the test cases efficiently, but if you want low complexity and want to answer the problem, it adds a degree of difficulty. good solutions either way.
How to find the position of an element in a vector without using the find function
2478 Solvers
Determine if a Given Number is a Triangle Number
322 Solvers
404 Solvers
Back to basics 8 - Matrix Diagonals
783 Solvers
Is this triangle right-angled?
2403 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!