Problem 317. Find the stride of the longest skip sequence
Solution Stats
Problem Comments
-
4 Comments
Show
1 older comment
@bmtran (Bryant Tran)
on 13 Feb 2012
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.
Ned Gulley
on 14 Feb 2012
Fair enough. I changed the wording to remove the ambiguity.
Ned Gulley
on 13 Feb 2014
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.
Jean-Marie Sainthillier
on 28 Jan 2015
Tough !
Two years before understand that the sequence must contain only elements of a :)
Solution Comments
Show commentsProblem Recent Solvers145
Suggested Problems
-
12539 Solvers
-
16158 Solvers
-
585 Solvers
-
Numbers with prime factors 2, 3 and 5.
428 Solvers
-
614 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!