Same issue here as in your third problem. Please check the absolute value of the differences of the computed values with the correct ones. Otherwise, more silly answers (again, like this one :-) will slip through!
Thanks for the catch. I've updated the test suite to check against upper and lower bounds of each answer.
3289 Solvers
Given an unsigned integer x, find the largest y by rearranging the bits in x
819 Solvers
Back to basics 11 - Max Integer
686 Solvers
1437 Solvers
Replace multiples of 5 with NaN
364 Solvers
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!