you should probably add a test case where the correct answer is false.
True!
I added a few more tests as suggested.
Given an unsigned integer x, find the largest y by rearranging the bits in x
782 Solvers
Sum the elements in either diagonal of a square matrix
178 Solvers
219 Solvers
283 Solvers
377 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!