This solution is correct to within eps, but the test is expecting exact agreement. That is not good programming when dealing with floating point numbers.
27981 Solvers
Return the 3n+1 sequence for n
6167 Solvers
1163 Solvers
Find perfect placement of non-rotating dominoes (easier)
240 Solvers
71 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!