Problem 347. Back to basics 15 - Benchmark
Solution Stats
Problem Comments
-
3 Comments
The test suite already spoils the solution.
True. In general that should be avoided, although admittedly it's difficult here because if the correct answer were hard-coded, then changes to: (i) the hardware on which Cody runs; or (ii) the version of MATLAB that Cody employs may eventually invalidate it. Having said that, the Test Suite could still be tightened up (see e.g. Solution 1461085).
Test suite doesn't work anymore.
Problem Recent Solvers322
Suggested Problems
-
Return the 3n+1 sequence for n
7352 Solvers
-
Remove all the words that end with "ain"
1834 Solvers
-
Find common elements in matrix rows
2081 Solvers
-
Arrange vector in ascending order
721 Solvers
-
Implement simple rotation cypher
1032 Solvers
More from this Author39
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!