Need a better test suite to prevent cheesy solutions like this one. :-) Some N>10 values in there would help. N>50 would be even better.
Given an unsigned integer x, find the largest y by rearranging the bits in x
782 Solvers
Back to basics 21 - Matrix replicating
1052 Solvers
Create a Multiplication table matrix...
283 Solvers
Generate a random matrix A of (1,-1)
211 Solvers
Create an index-powered vector
353 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!