The description was improved and the test suite fixed.
The test suite needs to be fixed so it can admit a tolerance in the solution since it is using floats. Currently MATLAB has the function movmad, but even with it, and using round the last case of the test suite fails.
The test suite has had a tolerance applied.
The tolerance isn't defined in the test suite.
@ChrisR: the tolerance is hard-coded into the assert lines (1e-3).
Test for balanced parentheses
Bottles of beer
Cody Computer Part 4 : Are you a morning Cody player Addicted ?
Set the array elements whose value is 13 to 0
Gauss Eliminate 2-by-2 example
Exponents in Factorials(hard)
What can you get for exactly amount of money(harder)
Project Euler 249: Prime Subset Sums
Project Euler: Problem 14 Longest Collatz sequence
Find the treasures in MATLAB Central and discover how the community can help you!
Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .
You can also select a web site from the following list:
Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.
Contact your local office