I think the test suite is wrong:
If "G" is supposed to have a "minimal number of empty cells" then why is the second test a 9x9 with the last column being all zeros? I would expect this column to be unnecessary.
For the first test, I'm getting 1.2690e-05 for chk2.
Problem is great though!
Sean, I agree, my bad, I removed the end column and rescored. my code yields 1.2680e-05 still (last value kept per cell?)
The function roundn is no longer supported by Cody, please update the test suite to round(x/10^e)*10^e.
Sort a list of complex numbers based on far they are from the origin.
Find state names that end with the letter A
So many choices
Generalized N-Cards Problem
provide the numerical answer to these number questions...
Is this number Munchhausen Narcissistic?
remove nans fast
Create numeric palindromes and their square roots
is the number happy?
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