Problem 317. Find the stride of the longest skip sequence
this problem is multi-valued. it is equally valid to say that, in the case of the example, the stride associated with the longest skip sequence is -2.
Fair enough. I changed the wording to remove the ambiguity.
I added another test and rescored. It appears that DIST no longer works. The DIST function is from the Neural Networks Toolbox. It shouldn't have worked in the past, but since it did, it played a part in a lot of answers. Sorry for the discontinuity.
Two years before understand that the sequence must contain only elements of a :)
Solution CommentsShow comments
Problem Recent Solvers144
Omit columns averages from a matrix
Create matrix of replicated elements
Write c^3 as sum of two squares a^2+b^2
More from this Author50
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!