It would be beneficial for the problem if zeros were added to test cases, for example [...,1,2,0,-1,-2,...], [...,1,2,3,0,2,3,...], [...1,2,3,0,0,0,1,2,...], [...,1,2,0,0,-1,-2,...], etc.
Additional test cases have been added and the description slightly modified.
Find the peak 3n+1 sequence value
1122 Solvers
Project Euler: Problem 5, Smallest multiple
409 Solvers
We love vectorized solutions. Problem 1 : remove the row average.
554 Solvers
Split a string into chunks of specified length
489 Solvers
2758 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!