As a friendly reminder, we can see the test suite, so it makes the problem more challenging if the solution is not explicitly in the test suite.
The Test Suite needs to allow for floating-point errors in all test cases, as demonstrated in Solution 1575603. (Refer to Problem 44690.) Also, there should be at least four test cases for every problem.
Return the 3n+1 sequence for n
6299 Solvers
1833 Solvers
4017 Solvers
566 Solvers
500 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!