-
1 Comment
Brendan Gray
on 11 Feb 2016
The test suite is poorly designed. A better test would be
assert(length(unique(sum(A.*repmat(2.^(0:(n-1)),2^n,1),2)))==2^n)
Suggested Problems
-
13635 Solvers
-
482 Solvers
-
We love vectorized solutions. Problem 1 : remove the row average.
841 Solvers
-
1406 Solvers
-
1498 Solvers
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!