This solution takes advantage of the limited test cases where the maximum length of repeated segments is <= 2.
This solution is actually incorrect (but passes the test suite).
Make a random, non-repeating vector.
2815 Solvers
Matrix which contains the values of an other matrix A at the given locations.
214 Solvers
177 Solvers
338 Solvers
construct matrix with identical rows
168 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!