-
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
-
4436 Solvers
-
Check to see if a Sudoku Puzzle is Solved
330 Solvers
-
Generate N equally spaced intervals between -L and L
895 Solvers
-
1507 Solvers
-
747 Solvers
More from this Author96
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!