Problem 69. Find the peak 3n+1 sequence value
If you want to add more tests: https://oeis.org/A006884 and https://oeis.org/A006885 contain the relevant sequences.
Why the leading solution size is 0 ? Is it for everyone or just me
@Tanzil Parvez (Emon): the hack solutions (hopefully all) have been deleted from this problem.
Wrong test cases! I checked on internet and found all the test cases except case 1 are wrong.
The test cases are all correct. You have simply not understood what the question is asking.
Broken link in description.
Link has been updated.
This solution will fail for nmax = 2; so I had to swap the order of two lines. See Solution 1088355.
Clever pattern, but still gaming the system. This is not the absolute highest Collatz peak as you go to infinity. Yuval, you should be ashamed of submitting this without apologies.
This really doesn't solve the problem it's just gaming the results.
Ooooooh this is evil.
Problem Recent Solvers1814
Remove any row in which a NaN appears
Back to basics 6 - Column Vector
Duplicate each element of a vector.
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!